Install pip on Mac OSX

Hi there,

In this post, I will tell you step by step how to install “pip” on Mac OSX Yosemite with Python support. Basically, I follow the instructions of the website shown below:

https://pip.pypa.io/en/stable/installing/

In case you still have problem following the procedure in this post, make sure to take a look at the website which might help you solve the problem.

Let’s get started!

Step 1. Install Python (I use Python 2.7) on your mac.

Download the latest Python version in this website:
https://www.python.org/downloads/mac-osx/
Choose a version that you like and install the package on your mac.
After successfully install Python, open Terminal.app to check!
Path: /Applications/Utilities/Terminal.app
Type “python” and you should see the respond like this:

[...]ChenTingHao% python
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
 [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.

 

Step 2. Method 1: Install pip on your mac.

Go to the website: https://bootstrap.pypa.io/get-pip.py
Copy the whole code and save it in a TextEdit app. Remember to change the file type to py, for example: installpip.py.
Right click the the file that you just created, and choose “Get info”. Copy the path after “Where: “, so you’ll get the path of your file.
Type “cd” and press a space on the terminal, after that paste the path and press enter, then it should start to install pip.

[...]ChenTingHao% cd /Volumes/...(the path of the file)
[...]ChenTingHao% installpip.py

 

Step 2. Method 2: Install pip on your mac.

Simply type “sudo easy_install pip” on the terminal. After typing your password, it will start to install pip on your mac. More instructions could be found here:

http://stackoverflow.com/questions/17271319/installing-pip-on-mac-os-x

[...]ChenTingHao% sudo easy_install pip

 

 

Chen, Ting-Hao
Feb 15, 2016

Advertisements

One thought on “Install pip on Mac OSX

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s