I got a little confused in the files with the eggs and installed them with easy_install, I hope you can help me. (I read about people recommendations on pips, but I would like to understand this before moving on).
If I just copy e, g django_guardian-1.0.2-py2.6.egg , let's say the thumb pointer and the location in, for example, ~/bar/ pointed to by PYTHONPATH, trying to import the content via import guardian will give me importError. This error occurs even if I have easy_install.pth copied to
import sys; sys.__plen = len(sys.path) ./django_guardian-1.0.2-py2.6.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys '__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
Now, using easy_install django-guardian , of course, there was no such problem.
I went to the directory where the egg file was uploaded, and all it contains are the .pth and .egg . I want to know what other procedures / entries easy_install does, something makes the first method unusable ....
source share