[Openstack] [Keystore] "pip install -r requirements.txt" can't work under python 2.7

yewgang batmanustc at gmail.com
Sun Mar 6 09:15:35 UTC 2016


I want to update pip, but Ubuntu said to me that it's latest version. So
should I install python-3 or more, instead of python 2.7?

root at ubuntu-1110:~/workspace/openstack/keystone# pip --version

pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)
root at ubuntu-1110:~/workspace/openstack/keystone# apt-get install python-pip

Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 156 not upgraded.
root at ubuntu-1110:~/workspace/openstack/keystone#

2016-03-06 2:47 GMT+08:00 Robert Collins <robertc at robertcollins.net>:

> Caused by using an old version of pip. The minimum we support at the
> moment is 7.1
>
> -Rob
>
> On 5 March 2016 at 22:19, yewgang <batmanustc at gmail.com> wrote:
> > Hi,
> >
> > Is this caused by syntax error of requirements.txt in Keystore or some
> else?
> > Thank you for help.
> >
> > # pip install -r requirements.txt
> > Exception:
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126,
> in
> > main
> >     self.run(options, args)
> >   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line
> 200,
> > in run
> >     for req in parse_requirements(filename, finder=finder,
> options=options):
> >   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1257, in
> > parse_requirements
> >     req = InstallRequirement.from_line(line, comes_from)
> >   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 98, in
> from_line
> >     return cls(req, comes_from, url=url)
> >   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 38, in
> __init__
> >     req = pkg_resources.Requirement.parse(req)
> >   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2582, in
> > parse
> >     reqs = list(parse_requirements(s))
> >   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2507, in
> > parse_requirements
> >     line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version
> spec")
> >   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2485, in
> > scan_list
> >     "Expected ',' or end-of-list in",line,"at",line[p:]
> > ValueError: ("Expected ',' or end-of-list in",
> > "Routes!=2.0,!=2.1,>=1.12.3;python_version=='2.7' # MIT", 'at',
> > ";python_version=='2.7' # MIT")
> >
> > Storing complete log in /root/.pip/pip.log
> >
> > _______________________________________________
> > Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > Post to     : openstack at lists.openstack.org
> > Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> >
>
>
>
> --
> Robert Collins <rbtcollins at hpe.com>
> Distinguished Technologist
> HP Converged Cloud
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160306/a60adf41/attachment.html>


More information about the Openstack mailing list