Feb-20-2021, 03:06 PM
(This post was last modified: Feb-20-2021, 03:07 PM by edwarmax001.)
I am just starting to learn Python and my Mac computer can't find the python programming to run. I have downloaded python 3 several times trying to set everything up correctly. I read an article here about how to set up python3 in an editor called sublime text. I followed the steps exactly.
https://medium.com/@hariyanto.tan95/set-...45b742c720
After running the checkversion file it comes out with python 3.8.2. But when I try to run anything else, like the command
print("hello world")
the sublime builder gives me this response:
/Library/Developer/CommandLineTools/usr/bin/python3: can't find '__main__' module in ''
[Finished in 0.0s with exit code 1]
[cmd: ['python3', '-u', '']]
[dir: /Users/maxwell/python_work]
[path: /Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]
Any ideas? It seems like the computer is having a hard time finding where the python is being stored. I have tried a similar process on atom and Pycharm.
https://medium.com/@hariyanto.tan95/set-...45b742c720
After running the checkversion file it comes out with python 3.8.2. But when I try to run anything else, like the command
print("hello world")
the sublime builder gives me this response:
/Library/Developer/CommandLineTools/usr/bin/python3: can't find '__main__' module in ''
[Finished in 0.0s with exit code 1]
[cmd: ['python3', '-u', '']]
[dir: /Users/maxwell/python_work]
[path: /Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]
Any ideas? It seems like the computer is having a hard time finding where the python is being stored. I have tried a similar process on atom and Pycharm.