Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while upgrading to pip 7.1.10 on Windows 8.1 (python 2.7)

$ C:\Python27> pip install --upgrade pip

You are using pip version 6.0.8, however version 7.1.0 is available.

You should consider upgrading via the 'pip install --upgrade pip' command.

Collecting pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.0-py2.py3-none-any.whl#md5=b108384a762825ec20
345bb9b5b7209f

Using cached pip-7.1.0-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 6.0.8
    Uninstalling pip-6.0.8:
      Successfully uninstalled pip-6.0.8

previous version of pip is gone but i get this exception after that :

  Rolling back uninstall of pip
  Exception:
  Traceback (most recent call last):


File "c:\python27\lib\site-packages\pip-6.0.8-py2.7.egg\pip\basecommand.py", line 232, in main status = self.run(options, args) 
                               .
                               .
                               .

  AttributeError: 'NoneType' object has no attribute 'bytes'

I have upgrade setuptools and distribute , also i tried to install pip manualy and got this :

$ C:\Python27> pip install 7.1.10
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting 7.1.10
  Could not find any downloads that satisfy the requirement 7.1.10
  No distributions at all found for 7.1.10 
like image 403
Prometheus Avatar asked Aug 03 '15 16:08

Prometheus


2 Answers

I was facing the same issue , then i consulted the pip documentation and this is how they have recommended to upgrade pip :

for Windows :

python -m pip install -U pip

for Linux :

pip install -U pip

For further reference check thisLink

like image 68
thecreator232 Avatar answered Oct 04 '22 19:10

thecreator232


This bugreport suggests doing

easy_install -U pip

like image 25
x29a Avatar answered Oct 04 '22 20:10

x29a