I have no idea on how to solve this, I've tried to
echo "alias python=/usr/bin/python3" >> ~/.zshrc
And also
brew install python
I'm new on this so I really don't know what I'm doing, if someone could explain why I'm supposed to write those lines on my terminal I'd be very grateful
after updating to macos Monterey 12.6.1 had similar problem.
Before this update, python referred to python2.7 which was removed completely in the latest Monterey versions.
Using following fix:
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Applications/Xcode.app/Contents/Developer/usr/bin/python
sudo ln -s /usr/bin/python3 /usr/local/bin/python
Result:
python -V
Python 3.9.6
Try python3 --version
in your terminal window, if it returned the version details, then python is installed in your system.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.