This is how I have by brew: alex@iMac-Pro---Alex ~ % which python /usr/local/bin/python alex@iMac-Pro---Alex ~ % which python3 /usr/local/bin/python3 alex@iMac-Pro---Alex ~ % which pip /usr/local/bin/pip alex@iMac-Pro---Alex ~ % which pip3 /usr/local/bin/pip3 alex@iMac-Pro---Alex ~ % python --version Python 3.13.0 alex@iMac-Pro---Alex ~ % python3 --version Python 3.13.0 alex@iMac-Pro---Alex ~ % pip --version pip 24.2 from /usr/local/lib/python3.13/site-packages/pip (python 3.13) alex@iMac-Pro---Alex ~ % pip3 --version pip 24.2 from /usr/local/lib/python3.13/site-packages/pip (python 3.13) Uninstall system python: sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.x sudo rm /usr/local/bin/python3 sudo rm/usr/local/bin/pip3 brew install python echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc source ~/.zshrc which python3 which pip which pip3 It should be: /usr/local/bin/python3 /usr/local/bin/pip /usr/local/bin/pip3 pip --version pip3 --version It should be: pip 24.2 from /usr/local/lib/python3.13/site-packages/pip (python 3.13) To have pip and pip3 the same: ln -s /usr/local/bin/pip3 /usr/local/bin/pip
Author:
[source]
Post a Comment