I want to install python packages on OS X El Capitan. I saw the SIP was enabled to I disabled it. To make all the changes I want to. I deleted Scipy and Numpy that were installed in:
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/
I installed Scipy using the following command:
sudo pip install --user scipy
It still installs it in under:
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/
I want all my python packages to go under:
/Library/Python/2.7/site-packages/
I even tried this:(didnt work)
pip install --install-option="--prefix=$/Library/Python/2.7/site-packages/" --ignore-installed scipy
So things I want to do:
Make some config changes so that all my python packages get installed under:
/Library/Python/2.7/site-packages/
Force python to search for packages first under :
/Library/Python/2.7/site-packages/
Also python seems to be picking up setuptools (old version) installed under:
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/
I want it to use the new version installed under:
/Library/Python/2.7/site-packages/
.So after all these changes every package I update pip updates the on under:
/Library/Python/2.7/site-packages/
.
My PYTHONPATH
in my .bash_profile
is set to /Library/Python/2.7/site-packages