How to install pip for Python 3 on Mac OS X? How to install pip for Python 3 on Mac OS X? python-3.x python-3.x

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


UPDATE: This is no longer necessary with Python3.4. It installs pip3 as part of the stock install.

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

# download and install setuptoolscurl -O https://bootstrap.pypa.io/ez_setup.pypython3 ez_setup.py# download and install pipcurl -O https://bootstrap.pypa.io/get-pip.pypython3 get-pip.py

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

cd /usr/local/binln -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 installpip install pyserial

or:

# Don't want it?pip uninstall pyserial


I had to go through this process myself and chose a different way that I think is better in the long run.

I installed homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

then:

brew doctor

The last step gives you some warnings and errors that you have to resolve. One of those will be to download and install the Mac OS X command-line tools.

then:

brew install python3

This gave me python3 and pip3 in my path.

pieter$ which pip3 python3/usr/local/bin/pip3/usr/local/bin/python3


Install Python3 on mac

1. brew install python32. curl https://bootstrap.pypa.io/get-pip.py | python33. python3

Use pip3 to install modules

1. pip3 install ipython2. python3 -m IPython

:)