python-pip installation error

43 views
Skip to first unread message

Anil K

unread,
Jan 13, 2016, 7:18:59 AM1/13/16
to pypa-dev

Hi Team,

 

I am getting the below error while installing pip, I have changed the installation path before building the pip rpm package, I have checked 1.5.6 to 7.1.2 I am getting the same error in all packages, I have changed installation path in python and setuptools both are working fine  . please help me to fix this issue.

 

==================================================================================================================

[root@test ~]# which python

/opt/python/x86_64/2.7.3/bin/python

[root@test ~]# python --version

Python 2.7.3

[root@test ~]# which easy_install

/opt/python-setuptools/noarch/0.6c11/bin/easy_install

[root@test ~]# which pip

/opt/pip/x86_64/7.0.0-1/bin/pip

[root@test ~]# pip --version

Traceback (most recent call last):

  File "/opt/pip/x86_64/7.0.0-1/bin/pip", line 5, in <module>

    from pkg_resources import load_entry_point

  File "/opt/python-setuptools/noarch/0.6c11/lib/python2.7/site-packages/pkg_resources.py", line 2603, in <module>

    working_set.require(__requires__)

  File "/opt/python-setuptools/noarch/0.6c11/lib/python2.7/site-packages/pkg_resources.py", line 666, in require

    needed = self.resolve(parse_requirements(requirements))

  File "/opt/python-setuptools/noarch/0.6c11/lib/python2.7/site-packages/pkg_resources.py", line 565, in resolve

    raise DistributionNotFound(req)  # XXX put more info here

pkg_resources.DistributionNotFound: pip==7.0.0

[root@test ~]#

==================================================================================================================

 

 

 

Thanks in advance

regards

Anil

Jason R. Coombs

unread,
Jan 14, 2016, 9:18:46 AM1/14/16
to Anil K, pypa-dev
Anil,

Please read https://python-packaging-user-guide.readthedocs.org/en/latest/support/ for instructions on getting support. This list is for the developers to coordinate development and not for support.

The short answer to your question is you’re using a very old version of setuptools that is no longer supported. You should upgrade your setuptools version, which may require uninstalling and reinstalling or may be solvable with `easy_install -U setuptools`.
Reply all
Reply to author
Forward
0 new messages