How to Install Pip on Macos or Os X

Install pip on OS X

Dunno, but this crossbar installation tutorial seems to cover your topic completely.

Plus: You install your pip locally. Try bin/pip from within the folder you did the curl command.

Python pip installation on Mac is not working

Look at the final warning, which says that these scripts are not in PATH. Open Finder, and copy the listed files into the following directory: /usr/local/bin/

Go to /Users/arnau/Library/Python/2.7/bin. Duplicate the files listed into /usr/local/bin/ so that the command-line can recognize your command, pip.

If you don’t want to do this (which I don’t suggest), you can simply use the other answers for now which say to use python -m pip, which directs the command-line to the current directory of these files, /Users/arnau/Library/Python/2.7/bin. You may, however run into problems in the future doing this, so I suggested my above answer.

I also expect that you won’t want to type an additional 2 keywords every time you have to install a package.

Cannot install pip in python 3 mac OSX Big Sur

Try the following command:

 pip3 install package-name

If you still get the same error message, refer to the following link to get detailed instructions on pip installation on macOS:

https://www.geeksforgeeks.org/how-to-install-pip-in-macos/

How to install pip for Python 3 on Mac OS X?

UPDATE: This is no longer necessary as of Python3.4. pip3 is installed as part of the general Python3 installation.

I ended up posting this same question on the python mailing list, and got the following answer:

# download and install setuptools
curl -O https://bootstrap.pypa.io/ez_setup.py
python3 ez_setup.py
# download and install pip
curl -O https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py

Which solved my question perfectly. After adding the following for my own:

cd /usr/local/bin
ln -s ../../../Library/Frameworks/Python.framework/Versions/3.3/bin/pip pip

So that I could run pip directly, I was able to:

# use pip to install
pip install pyserial

or:

# Don't want it?
pip uninstall pyserial


Related Topics



Leave a reply



Submit