Skip to content Skip to sidebar Skip to footer

Import Argparse Fails, Some Setup/path Issue?

I've written as minimal a python program using argparse as I can. Just three lines. import argparse if __name__ == '__main__': print 'Hello World' It gets the following error:

Solution 1:

Thanks to all. The path had more than a few issues, as @sberry suggested. I found that netbeans defaults to jpython, which is an older 2.5 version. It also can use the standard python 2.7.1, and when I use that, all is happyness and joy

Thanks a bunch.

Post a Comment for "Import Argparse Fails, Some Setup/path Issue?"