Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac Python3 Not Working, any idea?

Tags:

python

macos

I installed python3 on mac, recently it is not working. I used to run some scripts in terminal using python3 xxx.py, however, when I now type in python3, i got

python3: posix_spawn: /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.52.7: No such file or directory

I did not delete the default python installed.

like image 670
Ares Avatar asked Aug 24 '26 21:08

Ares


1 Answers

Did you install python3 using homebrew? I had the same issue, and it was cause by a symlink error. Following this thread: https://www.reddit.com/r/Python/comments/2xa5xc/how_would_i_fix_this_path_issue/

I was able to fix it.. Simply just ran:

brew link --overwrite python3

And my issue was solved.

like image 142
Avery Kushner Avatar answered Aug 27 '26 10:08

Avery Kushner