Reputation: 5354
How can I specify a location where I can install new package
when I hit
sudo pip install virtualenv
it installs it in
/Library/Frameworks/Python.framework/Versions/2.7/bin
I wanted to the path to be in
PATH="/usr/local/bin:$PATH"
Upvotes: 0
Views: 432
Reputation: 8390
Use this,
pip install --target=d:\somewhere\other\than\the\default package_name
In your case it will be like ,
pip install --target=/usr/local/bin package_name
Upvotes: 1
Reputation: 1029
See here: Install a Python package into a different directory using pip?
pip install --install-option="--prefix=$PREFIX_PATH" package_name
Or, another option:
pip install package_name -t /usr/local/bin
Upvotes: 0