sublime text2 python error message /usr/bin/python: can’t find ‘__main__’ module in ”

I installed sublime text 2 to OSX 10.8.2. In my Mac, python 2.7.3 is installed.

In sublime text2, I just type

print 'Hello'

but error occurred like below.

/usr/bin/python: can't find '__main__' module in ''
[Finished in 0.2s with exit code 1]

How can I fix it?

Leave a Comment