Python Forum

Full Version: _Main_ error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello ,

I have written my first job in Python like very basic

#! /usr/bin/python
print "Hello World"
getting the following error
C:\Python27\python2.7.exe: can't find '__main__' module in 'C:\\Python27'
I have done setup configuration as suggested in some other internet posts

issue got resolved when I created a another file in the same project folder and tried to run it .not sure why original code was giving me the error.
Any reason you chose to use python 2 over python 3.
As some one new to python you should definitely get started with python 3.