r/learnpython • • 57m ago

About running python code in terminal

Guys, I am beginner. I have the python code and have saved in file. Now I want to place the file path in the terminal and run that code. I don't know what should I write before adding the file path? Please help!

2 Upvotes

8 comments sorted by

View all comments

Show parent comment

•

u/socal_nerdtastic 19m ago

for mac and linux it needs to be python3, unless you have a venv activated.

(I know the PSF recommends using python but afaik only 1 linux distro follows that)