pypa/pip

Pip think 1.11 version lower than 1.8

Closed this issue · 4 comments

  • Pip version: 9.0.1
  • Python version: 3.4.2
  • Operating system: debian 8

Description:

Installed Django 2 instead 1.11.

What I've run:

root@debian8-build:~/src/environment_root/server/v5# ant install
Buildfile: /root/src/environment_root/server/v5/build.xml

-get-dirs:

install:
     [exec] Already using interpreter /usr/bin/python3
     [exec] Using base prefix '/usr'
     [exec] New python executable in tmp/virtualenv-django/bin/python3
     [exec] Also creating executable in tmp/virtualenv-django/bin/python
     [exec] Installing setuptools, pip...done.
     [exec] Downloading/unpacking pip from https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl#md5=297dbd16ef53bcef0447d245815f5144
     [exec] Downloading/unpacking setuptools from https://pypi.python.org/packages/bb/e0/ea620f9ecbaaaf3ebb288cdbbe8cc20b6a789c17e42d8916662b218e3349/setuptools-38.2.4-py2.py3-none-any.whl#md5=e01a31cd30ce5f46d7e1fc2a5b1245a3
     [exec] Installing collected packages: pip, setuptools
     [exec]   Found existing installation: pip 1.5.6
     [exec]     Uninstalling pip:
     [exec]       Successfully uninstalled pip
     [exec]   Found existing installation: setuptools 5.5.1
     [exec]     Uninstalling setuptools:
     [exec]       Successfully uninstalled setuptools
     [exec] Successfully installed pip setuptools
     [exec] Cleaning up...
     [exec] Collecting pylint
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/pylint-1.7.4-py2.py3-none-any.whl
     [exec] Collecting isort>=4.2.5 (from pylint)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/isort-4.2.15-py2.py3-none-any.whl
     [exec] Collecting astroid>=1.5.1 (from pylint)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/astroid-1.5.3-py2.py3-none-any.whl
     [exec] Collecting six (from pylint)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/six-1.11.0-py2.py3-none-any.whl
     [exec] Collecting mccabe (from pylint)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/mccabe-0.6.1-py2.py3-none-any.whl
     [exec] Collecting lazy-object-proxy (from astroid>=1.5.1->pylint)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/lazy_object_proxy-1.3.1-cp34-cp34m-manylinux1_x86_64.whl
     [exec] Collecting wrapt (from astroid>=1.5.1->pylint)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/wrapt-1.10.11.tar.gz
     [exec] Successfully downloaded pylint isort astroid six mccabe lazy-object-proxy wrapt
     [exec] Collecting django==1.11
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/Django-1.11-py2.py3-none-any.whl
     [exec] Collecting pytz (from django==1.11)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/pytz-2017.3-py2.py3-none-any.whl
     [exec] Successfully downloaded django pytz
     [exec] Collecting pylint-django
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/pylint-django-0.7.2.tar.gz
     [exec] Collecting pylint-plugin-utils>=0.2.1 (from pylint-django)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/pylint-plugin-utils-0.2.6.tar.gz
     [exec] Collecting pylint>=1.0 (from pylint-django)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/pylint-1.7.4-py2.py3-none-any.whl
     [exec] Collecting astroid (from pylint-plugin-utils>=0.2.1->pylint-django)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/astroid-1.5.3-py2.py3-none-any.whl
     [exec] Collecting mccabe (from pylint>=1.0->pylint-django)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/mccabe-0.6.1-py2.py3-none-any.whl
     [exec] Collecting six (from pylint>=1.0->pylint-django)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/six-1.11.0-py2.py3-none-any.whl
     [exec] Collecting isort>=4.2.5 (from pylint>=1.0->pylint-django)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/isort-4.2.15-py2.py3-none-any.whl
     [exec] Collecting lazy-object-proxy (from astroid->pylint-plugin-utils>=0.2.1->pylint-django)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/lazy_object_proxy-1.3.1-cp34-cp34m-manylinux1_x86_64.whl
     [exec] Collecting wrapt (from astroid->pylint-plugin-utils>=0.2.1->pylint-django)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/wrapt-1.10.11.tar.gz
     [exec] Successfully downloaded pylint-django pylint-plugin-utils pylint astroid mccabe six isort lazy-object-proxy wrapt
     [exec] Collecting python-social-auth
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/python_social_auth-0.3.6-py3-none-any.whl
     [exec] Collecting social-auth-core (from python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/social_auth_core-1.5.0-py3-none-any.whl
     [exec] Collecting requests>=2.9.1 (from social-auth-core->python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/requests-2.18.4-py2.py3-none-any.whl
     [exec] Collecting six>=1.10.0 (from social-auth-core->python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/six-1.11.0-py2.py3-none-any.whl
     [exec] Collecting python3-openid>=3.0.10 (from social-auth-core->python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/python3_openid-3.1.0-py3-none-any.whl
     [exec] Collecting oauthlib>=1.0.3 (from social-auth-core->python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/oauthlib-2.0.6.tar.gz
     [exec] Collecting PyJWT>=1.4.0 (from social-auth-core->python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/PyJWT-1.5.3-py2.py3-none-any.whl
     [exec] Collecting defusedxml>=0.5.0rc1 (from social-auth-core->python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/defusedxml-0.5.0-py2.py3-none-any.whl
     [exec] Collecting requests-oauthlib>=0.6.1 (from social-auth-core->python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/requests_oauthlib-0.8.0-py2.py3-none-any.whl
     [exec] Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.9.1->social-auth-core->python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/chardet-3.0.4-py2.py3-none-any.whl
     [exec] Collecting certifi>=2017.4.17 (from requests>=2.9.1->social-auth-core->python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/certifi-2017.11.5-py2.py3-none-any.whl
     [exec] Collecting idna<2.7,>=2.5 (from requests>=2.9.1->social-auth-core->python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/idna-2.6-py2.py3-none-any.whl
     [exec] Collecting urllib3<1.23,>=1.21.1 (from requests>=2.9.1->social-auth-core->python-social-auth)
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/urllib3-1.22-py2.py3-none-any.whl
     [exec] Successfully downloaded python-social-auth social-auth-core requests six python3-openid oauthlib PyJWT defusedxml requests-oauthlib chardet certifi idna urllib3
     [exec] Collecting django-notifications-hq
     [exec]   File was already downloaded /root/src/environment_root/server/v5/tmp/pypackages/django_notifications_hq-1.3-py2.py3-none-any.whl
     [exec] Collecting django>=1.7 (from django-notifications-hq)
     [exec]   Downloading Django-2.0-py3-none-any.whl (7.1MB)
     [exec]   Saved ./tmp/pypackages/Django-2.0-py3-none-any.whl
^C

as far as i can tell 2 is greater than 1.7, as per the requirement listed in your output, im not sure where the 1.11 and 1.8 are from and without you providing more detail, there is nothing we can do to help you

Hi @itJunky!

[exec] Collecting django==1.11
[exec] Collecting django>=1.7 (from django-notifications-hq)

This looks like another case of #988 to me.

I think it goes because in ant build.xml i download all wheels before installation. And when resolve depends for django-notifications-hq i doesn't have django-1.11 installed.

One approach would be to explicitly define (in the initial wheel download) the versions that you want and then pass --no-index to pip install.

I hope that helps. Since this looks like something that will be resolved by #988 I will close this issue, but please let us know if you have any other trouble.