PIP install and Python path
11,108
Documentation: Set the PYTHONPATH
environment variable.
Related videos on Youtube
Author by
Calin Paul Alexandru
Updated on September 18, 2022Comments
-
Calin Paul Alexandru over 1 year
I am using pip install on a mac to get my python requirements for a django website.
I got pip from MacPorts
port install pip-2.7
Now the problem is the pip installs the packages in a location which is not in my python sys.path.
I just copied this bogus location
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
to a location present in my sys.path
/Library/Python/2.7/
Of course this worked ok, but I will use pip in the future so I need a persistent solution.
The question is how can I alter my sys.path to recognize that crap location or how do I tell pip to install dependencies somewhere else ?
-
Brad Koch about 10 yearsCross site duplicate, stackoverflow.com/q/10461590/425313
-
hmijail mourns resignees almost 7 yearsThis question makes me queasy.
-
-
Calin Paul Alexandru about 12 yearsOh, nevermind. It finally worked.