Tuesday, February 18, 2014

Re: when I pip-installed django-debug-toolbar, the latest version of Django was installed automatically.


On Monday, February 17, 2014 9:56:09 PM UTC-8, jmin...@gmail.com wrote:
hi Frank,

I appreciate it but seem that this situation is so unusual  that people do not understand. 
I have done those already.


So I do 
1) pip uninstall django
3) pip uninstall django-debug-toolbar

2) pip install django==1.3



then it says:


Downloading/unpacking django==1.3
  Running setup.py egg_info for package django

    warning: no previously-included files matching '__pycache__' found under directory '*'
    warning: no previously-included files matching '*.py[co]' found under directory '*'
  Requested django==1.3, but installing version 1.6.2
Installing collected packages: django
  Running setup.py install for django

then the version 1.6 is installed. Any solution?  


Depending on how old your pip version is, you may need to clean up things in your /tmp.
I have faced similar issues with old pip versions. It happened when an installation failed and left temporary package files in /tmp. Whatever the version you’ll want to install, it’ll take the one on the /tmp and will not remove it by itself.

The correct workaround is to clean /tmp and try a new installation.

Regards,
Xavier Ordoquy,
Linovia


No comments:

Post a Comment