Created
March 25, 2015 14:09
-
-
Save vadimkantorov/f0184fc9c8f8f90a5af9 to your computer and use it in GitHub Desktop.
A script to install pip packages locally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Usage example: bash pip.sh ipython | |
# Add the following export to your .bashrc or .profile to use the unpacked packages | |
# export PYTHONPATH=$HOME/user_lib/pip_user/lib/python2.7/site-packages:$PYTHONPATH | |
INSTALL_DIR=$HOME/user_lib/pip_user | |
mkdir -p $INSTALL_DIR | |
PYTHONUSERBASE=$INSTALL_DIR pip install --user "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment