title: python setup.py install in anaconda without sudo
body: <p>I have a local package XYZ that I usually (sucessfully) install using:</p>
  
  <pre><code>sudo python setup.py install
  </code></pre>
  
  <p>Now instead of a systemwide python installation, I installed Anaconda (for OSX) in my home directory under <code>~/anaconda3</code>. Running the above command without <code>sudo</code>, I expected the package to be automatically installed in <code>~/anaconda3/lib/python3.6/site-packages</code></p>
  
  <p>but instead the command results in:</p>
  
  <pre><code>error: [Errno 13] Permission denied: 'XYZ.egg-info/PKG-INFO'
  </code></pre>
  
  <p>so apparently <code>setup.py install</code> tries to write somewhere where only root has access to. Appreciate any hint on this...</p>
  
  <h2>UPDATE:</h2>
  
  <p>I tried with <code>sudo</code>. Actually by using <code>sudo</code> the files do get installed in the local path. Only the owner is root. So I had to <code>chwon</code> the files to myself manually. It would be nice to find out why <code>sudo</code> is needed by <code>setup.py</code> at all for installing in my own home folder?</p>