Skip to content

Instantly share code, notes, and snippets.

@vadimkantorov
Created March 25, 2015 14:09
Show Gist options
  • Save vadimkantorov/f0184fc9c8f8f90a5af9 to your computer and use it in GitHub Desktop.
Save vadimkantorov/f0184fc9c8f8f90a5af9 to your computer and use it in GitHub Desktop.
A script to install pip packages locally
#! /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