Wednesday 15 August 2012

python - Updating django version in virtaulenv but still showing old version -



python - Updating django version in virtaulenv but still showing old version -

i trying upgrade django version within virtualenv , showing django updated still not updated.

d:\testenv>tan\scripts\activate.bat (tan) d:\testenv>pip freeze beautifulsoup==3.2.1 django==1.4.3 distribute==0.6.15 django-export-xls==0.1.1 jdcal==1.0 openpyxl==2.0.4 pypm==1.3.4 pythonselect==1.3 pywin32==214 virtualenv==1.6.1 wsgiref==0.1.2 xlwt==0.7.5 (tan) d:\testenv>pip install django --upgrade downloading/unpacking django downloading django-1.7.1.tar.gz (7.5mb): 7.5mb downloaded running setup.py egg_info bundle django warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' installing collected packages: django found existing installation: django 1.4.3 not uninstalling django @ c:\python27\lib\site-packages, outside environment d:\testenv\tan running setup.py install django warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' installing django-admin-script.py script d:\testenv\tan\scripts installing django-admin.exe script d:\testenv\tan\scripts installed django cleaning up... (tan) d:\testenv>pip freeze beautifulsoup==3.2.1 django==1.4.3 distribute==0.6.15 django-export-xls==0.1.1 jdcal==1.0 openpyxl==2.0.4 pypm==1.3.4 pythonselect==1.3 pywin32==214 virtualenv==1.6.1 wsgiref==0.1.2 xlwt==0.7.5 (tan) d:\testenv>python activepython 2.7.2.5 (activestate software inc.) based on python 2.7.2 (default, jun 24 2011, 12:21:10) [msc v.1500 32 bit (intel)] on win32 type "help", "copyright", "credits" or "license" more information. >>> import django >>> dir(django) ['version', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'get_version'] >>> django.get_version <function get_version @ 0x022f7ab0> >>> django.get_version() '1.4.3' >>>

as django old verion 1.4.1 after upgrading should 1.7.1 , showing message successfully installed django still showing old version of django. how should update django version here. plus need help update django version 1.6.1 here.

i think key in:

not uninstalling django @ c:\python27\lib\site-packages, outside environment d:\testenv\tan

you have django installation outside virtualenv , somehow ignoring 1 installing , taking one. remove , seek again.

as side note, tried working django/python in windows long time...then gave begging windows allow me work , switched so. if want remain in windows advice @ to the lowest degree utilize vagrant, create life easier in long run.

python django virtualenv

No comments:

Post a Comment