How do I remove the "package sites" of my system from the search path for Python packages?

My search path for Python packages contains an entry for packages on my system site in

/Library/Python/2.7/site-packages 

It always was, but now that I installed Homebrew Python, it was suggested to remove it ( provided that it is safe and makes sense ) from the package search path for Homebrew Python. But I'm not sure how (or how he gets there: I am not adding it to PYTHONPATH , for example).

How to remove my site-packages from the search path that Brew uses Python for packages?

+1
python path packages
source share
1 answer

The easiest option is to pass -S to python on the command line, as described in the documentation .

0
source share

All Articles