So I decided to install python packages (technically Django apps) directly from the downloaded tar file, by extracting it and using the following command:
python setup.py install
However, inside my site-packages
directory, I find that the package was installed inside a .egg
directory that also has version numbers. The directories look annoyingly like this:
site-packages/django_cms-2.1.3-py2.7.egg/cms
site-packages/django_cms-2.1.3-py2.7.egg/mptt
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:
site-packages/cms
site-packages/mptt
Attempting to install the same package from pip
, and it works fine. This is frustrating, so some help would be appreciated.
I tracked down a thread that discusses something similar, but it didn't give a solution that worked.
The 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 manually move the package to the root, but how do you correctly install python packages?
Also, I didn't suppress the easy-install.pth
file, but it isn't picked up by PyDev
.