[openstack-dev] [nova] installation of requirements not possible because of wrong pip version

Christian Berendt christian at berendt.io
Fri Aug 7 20:31:08 UTC 2015


According to requirements.txt we require pip>=6.0. Trying to install the 
requirements for nova with pip 6.1.1 is not possible at the moment 
because of the following issue:

$ virtualenv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
You are using pip version 6.1.1, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Double requirement given: Routes!=2.0,>=1.12.3 (from -r requirements.txt 
(line 14)) (already in Routes!=2.0,!=2.1,>=1.12.3 (from -r 
requirements.txt (line 13)), name='Routes')

It looks like pip 6.1.1 cannot handle the following 2 lines in 
requirements.txt:

Routes>=1.12.3,!=2.0,!=2.1;python_version=='2.7'
Routes>=1.12.3,!=2.0;python_version!='2.7'

After upgrading pip to the latest available version (7.1.0) with pip 
install --upgrade pip everything is working like expected.

Does this mean that we have to require at least pip>=7.1.0 in the global 
requirements?

Christian.

-- 
Christian Berendt
Cloud Solution Architect
Mail: berendt at b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537



More information about the OpenStack-dev mailing list