Python Forum
Trouble downloading and using any text editors
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble downloading and using any text editors
#1
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.
Reply
#2
first make sure you have the right install package, see: https://www.python.org/downloads/mac-osx/
Then follow instructions here: https://docs.python.org/3/using/mac.html
and perhaps: https://opensource.com/article/19/5/pyth...efault-mac
I don't own a Mac, so hope this is helpful.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  beginner having text based adventure trouble mrgee 2 2,059 Dec-16-2021, 05:07 AM
Last Post: buran
  Query on downloading attachment pythonFresher 1 1,536 May-20-2020, 08:43 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020