I am following this tutorial to install virtualenvwrapper
https://realpython.com/python-virtual-environments-a-primer/#managing-virtual-environments-with-virtualenvwrapper
However, I just can't get mine working.
When I do pip install virtualenvwrapper --user
I get the following warning.
Installing collected packages: virtualenv, pbr, six, stevedore, virtualenv-clone, virtualenvwrapper
WARNING: The script virtualenv is installed in '/Users/user1/Library/Python/2.7/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script pbr is installed in '/Users/user1/Library/Python/2.7/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script virtualenv-clone is installed in '/Users/user1/Library/Python/2.7/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
So I added the following to my .bash_profile
and now it can find the package.
"/Users/user1/Library/Python/2.7/bin:$PATH"
but I just don't understand why this extra step is necessary in my environment when everyone else seems to be fine with package just being directly installed to /local/bin
.
These are where my python2 and pip are with no symlink.
admins-MacBook-Pro:~ user1$ which python
/usr/bin/python
admins-MacBook-Pro:~ user1$ which pip
/usr/local/bin/pip
Question
- Why is my
pip
installing stuff on/Users/user1/Library/Python/2.7/bin
when most people seem to be fine with/usr/local/bin/
? - Is there a way for me to avoid this issue? How can I cleanly set up my environment so that all packages are installed in /usr/local/bin?