I know the obvious answer is to use virtualenv and virtualenvwrapper, but for various reasons I can’t/don’t want to do that.
So how do I modify the command
pip install package_name
to make pip install the package somewhere other than the default site-packages?
Use:
You might also want to use
--ignore-installedto force all dependencies to be reinstalled using this new prefix. You can use--install-optionto multiple times to add any of the options you can use withpython setup.py install(--prefixis probably what you want, but there are a bunch more options you could use).