pip 101

Pip Installation

on ubuntu

sudo apt-get install python-pip

on macOS

sudo easy_install pip

Install Python module

pip install --install-option="--prefix=$PREFIX_PATH" package_name

If prefix is not defined, the default installed directory path  is at

ubuntu

/usr/local/lib/python2.7/dist-packages/

macOS

/Library/Python/2.7/site-packages

Example

sudo pip install yaml --install-option="--prefix=~/VirtualBoxSharedFolder/googlespreadsheet/external/"

ref : http://stackoverflow.com/questions/2915471/install-a-python-package-into-a-different-directory-using-pip

Reinstall

sudo pip install babel --upgrade

UnInstall

sudo pip uninstall babel

requirements.txt

pip install -r requirements.txt

Common-Problem

TypeError: parse_requirements() got an unexpected keyword argument ‘session’

Solution

sudo pip install --upgrade pip

ref : https://github.com/tweepy/tweepy/issues/564

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s