Pip install doesn't work on m1 Mac

My pip isn't working. I tried installing it with ensurepip as well as with the official get-pip.py script. With the official installation script I get a warning:

WARNING: The scripts pip, pip3 and pip3.9 are installed in '/opt/homebrew/opt/python@3.9/Frameworks/ which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

The end of the script:

Successfully installed pip-22.0.4

But after restarting Terminal and rebooting it still is not working

Do you know how to fix this?

7

2 Answers

The error message WARNING: The scripts pip, pip3 and pip3.9 are installed in '/opt/homebrew/opt/python@3.9/Frameworks/ which is not on PATH. Consider adding this directory to PATH tells you all you need to know about the issue and solution.

You need to modify your $PATH variable as following:

export PATH=$PATH:/opt/homebrew/opt/python@3.9/Frameworks/

You can find information about making the change permanent here

I am really sorry for this question

I just recognized that i have to type pip3

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like