Upgrade your OS X Python pip

Someone like me just migrate the laptop OS from Windows platform to OS X or Linux ones should encounter some different operation difficult. I need to be familiar with underneath command line operation.

I am a cisco guy working for Cisco since 1997 and recently wanted to migrate my PERL Cisco control Script( using Net::Telnet::Cisco module from CPAN ) to Python. Found a great Python module called ciscoconfparse that works with IOS, NX-OS, JunOS, F5, etc.

The first thing I encountered is how to install the Python module under OS X command line.

The pip command comes with OS X is quite out-dated version something like 6.0.8 but the most updated one is 7.1.2. I'd better upgrade it before getting ciscoconfparse then.

Here is the upgrading process:

GeegoMacBook-Air-2:~ geego$ pip3 install --upgrade pip  
You are using pip version 6.0.8, however version 7.1.2 is available.  
You should consider upgrading via the 'pip install --upgrade pip' command.  
Collecting pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.2-py2.py3-none-any.whl#md5=5ff9fec0be479e4e36df467556deed4d  
  Downloading pip-7.1.2-py2.py3-none-any.whl (1.1MB)
    100% |################################| 1.1MB 226kB/s 
Installing collected packages: pip  
  Found existing installation: pip 6.0.8
    Uninstalling pip-6.0.8:
      Successfully uninstalled pip-6.0.8

Successfully installed pip-7.1.2  
GeegoMacBook-Air-2:~ geego$pip3 --version  
pip 7.1.2 from /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages (python 3.4)  

It's all set for now if you are seeing 'pip3 --verison' shows 7.1.2.