sublime text2 python error message /usr/bin/python: can't find '__main__' module in ''


10
down vote favorite
1

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?



27
down vote

i got the same error as i dint save the script before executing. check if you have saved it!运行之前 请先执行保存

   http://stackoverflow.com/questions/14330411/sublime-text2-python-error-message-usr-bin-python-cant-find-main-module

你可能感兴趣的:(python)