florent pierre
florent pierre

Reputation: 1

sublime text VS os terminal

I am an absolute beginner using (actually trying to) Mac High Sierra with Sublime3 and Python2.7. Just installed them. When I test Sublime on terminal, here's what I get:

pc37:desktop flop$ one
-bash: one: command not found

I setup Sublime to write in Python and saved the file "one.py" on my desktop. Does it come from Sublime or the OS? I read a few debugging articles on the subject but didn't understand half of it... Didn't want to make the situation worst using wrong command lines. Could someone help please? Thank you! Flo

Upvotes: 0

Views: 212

Answers (1)

l'L'l
l'L'l

Reputation: 47159

You need to use valid Bash command syntax for executing Python scripts in Terminal:

python one.py

...or...

./one.py

Of course this requires you cd to ~/Desktop first.

Upvotes: 2

Related Questions