Custom Search

Sunday, May 12, 2019

Install a Python package into a different directory using pip

mkdir /home/puser/pypack_test1
mkdir /home/puser/pypack_test2

a)
pip install requests -t /home/puser/pypack_test1
pip install requests --target /home/puser/pypack_test1

b)
export PYTHONUSERBASE=/home/puser/pypack_test1
pip install --user requests

No comments:

Post a Comment