Note that there are some explanatory texts on larger screens.

plurals
  1. PO.egg dirs in site-packages when installing python packages?
    text
    copied!<p>So I decided to install python packages (technically Django apps) directly from the downloaded tar file, by extracting it and using the following command:</p> <pre><code>python setup.py install </code></pre> <p>However, inside my site-packages directory I find that the package was installed inside a .egg directory that also has version numbers. They directories look annoyingly like this:</p> <pre><code>site-packages/django_cms-2.1.3-py2.7.egg/cms site-packages/django_cms-2.1.3-py2.7.egg/mptt </code></pre> <p>I need the packages to install as a directory with the package name with no .egg or version number, otherwise Django can't find the package. It should be like this:</p> <pre><code>site-packages/cms site-packages/mptt </code></pre> <p>Attempting to install the same package from pip, and it works fine. This is frustrating, so some help would be appreciated.</p> <p>I tracked down a <a href="https://stackoverflow.com/questions/6301003/stopping-setup-py-from-installing-as-egg">thread</a> that discusses something similar, but it didn't give a solution that worked.</p> <p>edit: Let me further explain, the python (django) project is unable to locate the packages I installed, because the packages aren't installed at the root of site-packages dir. Instead it resides inside the .egg directories. What I had to do is manuall move the package to the root, but how do you correctly install python packages?</p> <p>another edit: I didn't suppress the easy-install.pth file, but it isn't picked up by PyDev.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload