M
M
megaponshik2018-08-29 16:36:25
linux
megaponshik, 2018-08-29 16:36:25

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]
5b86a15337241320351825.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alex F, 2018-08-30
@delvin-fil

Dear, this indicates that you did not save the file beforehand.

F
Febel, 2018-08-29
@Febel

What version of Python?
Try adding this at the beginning of your code:
#!/usr/bin/python

A
Azim Kurt, 2015-02-25
@protasovmikhail

So you called this function?
login();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question