virtualenv - SOLVED - pip installs a django version different from the one specified in requirements.txt -
i'm trying djangocms tutorial.
everything fine on laptop (on archlinux), tried continue project on different computer (using mac os x). made git clone
, started fresh virtualenv , tried pip install -r requirements.txt
.
here content of requirements.txt (i got pip freeze
output) :
dj-database-url==0.3.0 django==1.6.11 django-classy-tags==0.6.2 django-cms==3.1.2 django-reversion==1.8.5 django-sekizai==0.8.2 django-select2==4.3.1 django-treebeard==3.0 djangocms-admin-style==0.2.7 djangocms-column==1.5 djangocms-file==0.1 djangocms-flash==0.2.0 djangocms-googlemap==0.2 djangocms-inherit==0.1 djangocms-installer==0.7.8 djangocms-link==1.6.2 djangocms-picture==0.1 djangocms-style==1.5 djangocms-teaser==0.1 djangocms-text-ckeditor==2.5.2 djangocms-video==0.1 html5lib==0.99999 pillow==2.8.0 -e git+http://git@github.com/divio/django-polls.git@9fb91e49e2e56cf59ab0cfcddb17c35afbdd06da#egg=polls-master pytz==2015.4 six==1.9.0 south==1.0.2 tzlocal==1.2 wheel==0.24.0
but django version after pip install
django 1.7.4 (instead of django 1.6.11). , don't understand why.
here output of pip freeze
:
dj-database-url==0.3.0 django==1.7.4 django-classy-tags==0.6.2 django-cms==3.1.2 django-reversion==1.8.5 django-sekizai==0.8.2 django-select2==4.3.1 django-treebeard==3.0 djangocms-admin-style==0.2.7 djangocms-column==1.5 djangocms-file==0.1 djangocms-flash==0.2.0 djangocms-googlemap==0.2 djangocms-inherit==0.1 djangocms-installer==0.7.8 djangocms-link==1.6.2 djangocms-picture==0.1 djangocms-style==1.5 djangocms-teaser==0.1 djangocms-text-ckeditor==2.5.2 djangocms-video==0.1 html5lib==0.99999 pbr==0.10.7 pillow==2.8.0 -e git+http://git@github.com/divio/django-polls.git@9fb91e49e2e56cf59ab0cfcddb17c35afbdd06da#egg=polls-master pytz==2015.4 six==1.9.0 south==1.0.2 stevedore==1.2.0 tzlocal==1.2 virtualenv==13.1.0 virtualenv-clone==0.2.5 virtualenvwrapper==4.6.0 wheel==0.24.0
here output of pip install -r requirements.txt
:
/volumes/data/nfs/zfs-student-3/users/2013_paris/vmonteco/envs/djangocms/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: insecureplatformwarning: true sslcontext object not available. prevents urllib3 configuring ssl appropriately , may cause ssl connections fail. more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. insecureplatformwarning collecting dj-database-url==0.3.0 (from -r requirements.txt (line 1)) /volumes/data/nfs/zfs-student-3/users/2013_paris/vmonteco/envs/djangocms/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: insecureplatformwarning: true sslcontext object not available. prevents urllib3 configuring ssl appropriately , may cause ssl connections fail. more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. insecureplatformwarning downloading dj_database_url-0.3.0-py2.py3-none-any.whl collecting django==1.6.11 (from -r requirements.txt (line 2)) downloading django-1.6.11-py2.py3-none-any.whl (6.7mb) 100% |████████████████████████████████| 6.7mb 75kb/s collecting django-classy-tags==0.6.2 (from -r requirements.txt (line 3)) downloading django_classy_tags-0.6.2-py2-none-any.whl collecting django-cms==3.1.2 (from -r requirements.txt (line 4)) downloading django_cms-3.1.2-py2.py3-none-any.whl (3.0mb) 100% |████████████████████████████████| 3.0mb 150kb/s collecting django-reversion==1.8.5 (from -r requirements.txt (line 5)) downloading django-reversion-1.8.5.tar.gz (57kb) 100% |████████████████████████████████| 61kb 4.1mb/s collecting django-sekizai==0.8.2 (from -r requirements.txt (line 6)) downloading django_sekizai-0.8.2-py2.py3-none-any.whl collecting django-select2==4.3.1 (from -r requirements.txt (line 7)) downloading django-select2-4.3.1.tar.gz (97kb) 100% |████████████████████████████████| 98kb 3.0mb/s collecting django-treebeard==3.0 (from -r requirements.txt (line 8)) downloading django-treebeard-3.0.tar.gz (93kb) 100% |████████████████████████████████| 94kb 1.8mb/s collecting djangocms-admin-style==0.2.7 (from -r requirements.txt (line 9)) downloading djangocms_admin_style-0.2.7-py2.py3-none-any.whl (484kb) 100% |████████████████████████████████| 487kb 834kb/s collecting djangocms-column==1.5 (from -r requirements.txt (line 10)) downloading djangocms_column-1.5-py2-none-any.whl (127kb) 100% |████████████████████████████████| 131kb 1.7mb/s collecting djangocms-file==0.1 (from -r requirements.txt (line 11)) downloading djangocms_file-0.1-py2-none-any.whl (120kb) 100% |████████████████████████████████| 122kb 2.8mb/s collecting djangocms-flash==0.2.0 (from -r requirements.txt (line 12)) downloading djangocms_flash-0.2.0-py2-none-any.whl (121kb) 100% |████████████████████████████████| 122kb 3.9mb/s collecting djangocms-googlemap==0.2 (from -r requirements.txt (line 13)) downloading djangocms_googlemap-0.2-py2-none-any.whl (193kb) 100% |████████████████████████████████| 196kb 2.4mb/s collecting djangocms-inherit==0.1 (from -r requirements.txt (line 14)) downloading djangocms_inherit-0.1-py2-none-any.whl (131kb) 100% |████████████████████████████████| 135kb 2.5mb/s collecting djangocms-installer==0.7.8 (from -r requirements.txt (line 15)) downloading djangocms_installer-0.7.8-py2.py3-none-any.whl (47kb) 100% |████████████████████████████████| 49kb 3.9mb/s collecting djangocms-link==1.6.2 (from -r requirements.txt (line 16)) downloading djangocms_link-1.6.2-py2-none-any.whl (151kb) 100% |████████████████████████████████| 151kb 1.3mb/s collecting djangocms-picture==0.1 (from -r requirements.txt (line 17)) downloading djangocms_picture-0.1-py2-none-any.whl (154kb) 100% |████████████████████████████████| 155kb 2.6mb/s collecting djangocms-style==1.5 (from -r requirements.txt (line 18)) downloading djangocms-style-1.5.tar.gz collecting djangocms-teaser==0.1 (from -r requirements.txt (line 19)) downloading djangocms_teaser-0.1-py2-none-any.whl (121kb) 100% |████████████████████████████████| 122kb 3.0mb/s collecting djangocms-text-ckeditor==2.5.2 (from -r requirements.txt (line 20)) downloading djangocms_text_ckeditor-2.5.2-py2.py3-none-any.whl (1.6mb) 100% |████████████████████████████████| 1.6mb 303kb/s collecting djangocms-video==0.1 (from -r requirements.txt (line 21)) downloading djangocms_video-0.1-py2-none-any.whl (176kb) 100% |████████████████████████████████| 180kb 1.1mb/s collecting html5lib==0.99999 (from -r requirements.txt (line 22)) downloading html5lib-0.99999.tar.gz (887kb) 100% |████████████████████████████████| 888kb 493kb/s collecting pillow==2.8.0 (from -r requirements.txt (line 23)) downloading pillow-2.8.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.8mb) 100% |████████████████████████████████| 2.8mb 162kb/s obtaining polls-master git+http://git@github.com/divio/django-polls.git@9fb91e49e2e56cf59ab0cfcddb17c35afbdd06da#egg=polls-master (from -r requirements.txt (line 24)) cloning http://git@github.com/divio/django-polls.git (to 9fb91e49e2e56cf59ab0cfcddb17c35afbdd06da) /volumes/data/nfs/zfs-student-3/users/2013_paris/vmonteco/envs/djangocms/src/polls-master not find tag or branch '9fb91e49e2e56cf59ab0cfcddb17c35afbdd06da', assuming commit. collecting pytz==2015.4 (from -r requirements.txt (line 25)) downloading pytz-2015.4-py2.py3-none-any.whl (475kb) 100% |████████████████████████████████| 475kb 1.1mb/s requirement satisfied (use --upgrade upgrade): six==1.9.0 in /volumes/data/nfs/zfs-student-3/users/2013_paris/vmonteco/library/python/2.7/lib/python/site-packages (from -r requirements.txt (line 26)) collecting south==1.0.2 (from -r requirements.txt (line 27)) downloading south-1.0.2.tar.gz (96kb) 100% |████████████████████████████████| 98kb 3.3mb/s collecting tzlocal==1.2 (from -r requirements.txt (line 28)) downloading tzlocal-1.2.tar.gz requirement satisfied (use --upgrade upgrade): wheel==0.24.0 in /volumes/data/nfs/zfs-student-3/users/2013_paris/vmonteco/envs/djangocms/lib/python2.7/site-packages (from -r requirements.txt (line 29)) requirement satisfied (use --upgrade upgrade): argparse in /volumes/data/nfs/zfs-student-3/users/2013_paris/vmonteco/library/python/2.7/lib/python/site-packages (from djangocms-installer==0.7.8->-r requirements.txt (line 15)) requirement satisfied (use --upgrade upgrade): pip in /volumes/data/nfs/zfs-student-3/users/2013_paris/vmonteco/envs/djangocms/lib/python2.7/site-packages (from djangocms-installer==0.7.8->-r requirements.txt (line 15)) building wheels collected packages: django-reversion, django-select2, django-treebeard, djangocms-style, html5lib, south, tzlocal running setup.py bdist_wheel django-reversion stored in directory: /nfs/zfs-student-3/users/2013_paris/vmonteco/library/caches/pip/wheels/51/b4/ea/033db3e78df246021ef65c216c3f716efd5882021289378705 running setup.py bdist_wheel django-select2 stored in directory: /nfs/zfs-student-3/users/2013_paris/vmonteco/library/caches/pip/wheels/a7/e2/92/a069a90e2595d4a5dbc9f0609d52d8bea9555e42153828eebb running setup.py bdist_wheel django-treebeard stored in directory: /nfs/zfs-student-3/users/2013_paris/vmonteco/library/caches/pip/wheels/73/8e/8b/3d72e01575557ffeeb1ef648581006d468a415ed868abbfb5d running setup.py bdist_wheel djangocms-style stored in directory: /nfs/zfs-student-3/users/2013_paris/vmonteco/library/caches/pip/wheels/5b/80/87/41ea156cdab7a7a170122f3a3b77af473ae855612d4d88d6a2 running setup.py bdist_wheel html5lib stored in directory: /nfs/zfs-student-3/users/2013_paris/vmonteco/library/caches/pip/wheels/44/5c/08/f97a40f63f914c4c3a9798e1ff5606b5ab19fe5dcfb64e27b6 running setup.py bdist_wheel south stored in directory: /nfs/zfs-student-3/users/2013_paris/vmonteco/library/caches/pip/wheels/11/2b/ca/a57966e1943759859dd94f3ebc5c279450bee11e07d600e3a3 running setup.py bdist_wheel tzlocal stored in directory: /nfs/zfs-student-3/users/2013_paris/vmonteco/library/caches/pip/wheels/39/8d/3b/21db6b23bc7483a2e1cf391865427e8fbd090223d9db2cfab3 built django-reversion django-select2 django-treebeard djangocms-style html5lib south tzlocal installing collected packages: dj-database-url, django, django-classy-tags, django-sekizai, django-treebeard, djangocms-admin-style, html5lib, django-cms, django-reversion, django-select2, djangocms-column, djangocms-file, djangocms-flash, djangocms-googlemap, djangocms-inherit, pytz, tzlocal, djangocms-installer, djangocms-link, djangocms-picture, djangocms-style, djangocms-teaser, pillow, djangocms-text-ckeditor, djangocms-video, polls-master, south found existing installation: django 1.7.4 not uninstalling django @ /volumes/data/nfs/zfs-student-3/users/2013_paris/vmonteco/library/python/2.7/lib/python/site-packages, outside environment /volumes/data/nfs/zfs-student-3/users/2013_paris/vmonteco/envs/djangocms running setup.py develop polls-master installed django-1.7.4 django-select2-4.3.1 pillow-2.8.0 south-1.0.2 dj-database-url-0.3.0 django-classy-tags-0.6.2 django-cms-3.1.2 django-reversion-1.8.5 django-sekizai-0.8.2 django-treebeard-3.0 djangocms-admin-style-0.2.7 djangocms-column-1.5 djangocms-file-0.1 djangocms-flash-0.2.0 djangocms-googlemap-0.2 djangocms-inherit-0.1 djangocms-installer-0.7.8 djangocms-link-1.6.2 djangocms-picture-0.1 djangocms-style-1.5 djangocms-teaser-0.1 djangocms-text-ckeditor-2.5.2 djangocms-video-0.1 html5lib-0.99999 polls-master pytz-2015.4 tzlocal-1.2
django 1.7.4 seems installed @ end.
why?
how avoid this? current project can't work version , tutorial requires django 1.6.
edit :
i found out in site-packages of virtualenv, version of django 1.6.11. virtualenv may use wrong site-package.
why?
how fix this?
usually, when use virtualenv, shouldn't use right site-package directory?
last 5 lines of pip install -r requirements.txt
output gives answer:
successfully built django-reversion django-select2 django-treebeard djangocms-style html5lib south tzlocal installing collected packages: dj-database-url, django, django-classy-tags, django-sekizai, django-treebeard, djangocms-admin-style, html5lib, django-cms, django-reversion, django-select2, djangocms-column, djangocms-file, djangocms-flash, djangocms-googlemap, djangocms-inherit, pytz, tzlocal, djangocms-installer, djangocms-link, djangocms-picture, djangocms-style, djangocms-teaser, pillow, djangocms-text-ckeditor, djangocms-video, polls-master, south found existing installation: django 1.7.4 not uninstalling django @ /volumes/data/nfs/zfs-student-3/users/2013_paris/vmonteco/library/python/2.7/lib/python/site-packages, outside environment /volumes/data/nfs/zfs-student-3/users/2013_paris/vmonteco/envs/djangocms running setup.py develop polls-master installed django-1.7.4 django-select2-4.3.1 pillow-2.8.0 south-1.0.2 dj-database-url-0.3.0 django-classy-tags-0.6.2 django-cms-3.1.2 django-reversion-1.8.5 django-sekizai-0.8.2 django-treebeard-3.0 djangocms-admin-style-0.2.7 djangocms-column-1.5 djangocms-file-0.1 djangocms-flash-0.2.0 djangocms-googlemap-0.2 djangocms-inherit-0.1 djangocms-installer-0.7.8 djangocms-link-1.6.2 djangocms-picture-0.1 djangocms-style-1.5 djangocms-teaser-0.1 djangocms-text-ckeditor-2.5.2 djangocms-video-0.1 html5lib-0.99999 polls-master pytz-2015.4 tzlocal-1.2
you have django 1.7.4
installed already: found existing installation: django 1.7.4. believe reason why django 1.6.11
not being installed. hence output message: not uninstalling django @ /volumes/data/...
Comments
Post a Comment