Friday, September 11, 2020

Python: Install package under $HOME (non-root)


Run command:

$ pip install --prefix=$HOME/local A-PACKAGE


Update $HOME/.bashrc to set PYTHONPATH env variable:

 export PYTHONPATH=$HOME/local/lib/python2.7/site-packages:$PYTHONPATH


No comments:

 
Get This <