What should be my python packages path?
<p>I'm on Mac OS X and I've heard that to avoid global installation of packages (using sudo) that might cause problems with the python files that OS X uses, the path to install python packages must be different than that of OS X. </p>

<p>Currently python executables are installed in : </p>

<pre><code>/usr/local/bin/
</code></pre>

<p>Pip installs modules over here : </p>

<pre><code>/usr/local/lib/python2.7/site-packages
</code></pre>

<p>Python is used from here : </p>

<pre><code>/usr/local/bin/python
</code></pre>

<p>Are these paths safe?</p>

<p>You shouldn't be mucking about with Python package paths, and you shouldn't be installing Python packages globally at all. Use a virtualenv for each project, and let pip install the libraries locally inside the virtualenv.</p>

python osx pip