Home Download Buy Blog Forum Support

Error when using sublimetext to write python

Error when using sublimetext to write python

Postby kevinhu on Sun Jan 27, 2013 7:10 am

I write
Code: Select all
print(2+3)

in sublimetext and then press ctrl+B to run it in the console.
However I received nothing but
Code: Select all
C:\Python33\python.exe: can't find '__main__' module in ' '

what is wrong?
kevinhu
 
Posts: 1
Joined: Sun Jan 27, 2013 7:04 am

Re: Error when using sublimetext to write python

Postby adzenith on Sun Jan 27, 2013 2:02 pm

I think you need to save the file.
adzenith
 
Posts: 1216
Joined: Mon Oct 19, 2009 9:12 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 45 guests