Answer the question
In order to leave comments, you need to log in
Sublime text 3 error when working with python?
when trying to execute python command in /usr/bin/python console: can't find '__main__' module in ''
[Finished in 0.1s with exit code 1]
[shell_cmd: python -u ""]
[dir: /opt /sublime_text]
[path: /home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin: /bin:/usr/games:/usr/local/games]
Answer the question
In order to leave comments, you need to log in
What version of Python?
Try adding this at the beginning of your code:#!/usr/bin/python
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question