Installing Pip Packages In Different Directory Does Not Work
I want to install a pip package into a different directory, but pip refuses to do so. $ pip install django -t output File '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.fram
Solution 1:
Update: When I wrote this answer pipenv was not available. If you having the same problem, I strongly recommend considering using it.
If you have installed Python using brew
you need to add a setup.cfg file (source) in your project-dir with the following content:
[install]
prefix=
That will resolve the problem. Alternatively, you can use virtualenv
or even better docker.
Post a Comment for "Installing Pip Packages In Different Directory Does Not Work"