I'm using Python 2.7.9...
Made changes to the last line of the requirements_py2.txt file keeping
only ordereddict.

Got the errors below...

root@mydebian8:/home/mydebian8/pgadmin4-1.0# pip install -r
requirements_py2.txt
Downloading/unpacking Babel==1.3 (from -r requirements_py2.txt (line 1))
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement Babel==1.3
(from -r requirements_py2.txt (line 1))
Cleaning up...
No distributions at all found for Babel==1.3 (from -r requirements_py2.txt
(line 1))
Storing debug log for failure in /root/.pip/pip.log

How can I set pip to use proxy?

Thank you!

2016-10-24 11:50 GMT-02:00 Dave Page <dp...@pgadmin.org>:

> Please keep the list CC'd.
>
> On Mon, Oct 24, 2016 at 2:42 PM, André Cardoso <andrekr...@gmail.com>
> wrote:
> > root@mydebian8:/home/i1854609/pgadmin4-1.0# pip install -r
> > requirements_py2.txt
> > Exception:
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122,
> in
> > main
> >     status = self.run(options, args)
> >   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line
> 274,
> > in run
> >     for req in parse_requirements(filename, finder=finder,
> options=options,
> > session=session):
> >   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1632, in
> > parse_requirements
> >     req = InstallRequirement.from_line(line, comes_from,
> > prereleases=getattr(options, "pre", None))
> >   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 173, in
> from_line
> >     return cls(req, comes_from, url=url, prereleases=prereleases)
> >   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 71, in
> __init__
> >     req = pkg_resources.Requirement.parse(req)
> >   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2793,
> in
> > parse
> >     reqs = list(parse_requirements(s))
> >   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2721,
> in
> > parse_requirements
> >     "version spec")
> >   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2686,
> in
> > scan_list
> >     raise ValueError(msg, line, "at", line[p:])
> > ValueError: ('Expected version spec in', "ordereddict; python_version <
> > '2.7'", 'at', "; python_version < '2.7'")
>
> I'd guess you have an old version of pip that doesn't understand the
> environment marker on the very last line of the file. I would either:
>
> - Upgrade pip
>
> - Edit the requirements file and remove the last line if you have
> Python 2.7 or remove everything from and including the ; onwards if
> you have Python 2.6. Then, re-run pip install -r requirements_py2.txt.
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

Reply via email to