You are are using PIP version 8.0.3, however version 8.1.2 is available. You should consider upgrading V

Source: Internet
Author: User

The error is as follows:
You are are using PIP version 8.0.3, however version 8.1.2 is available. You should consider upgrading via the ' python-m pip install--upgrade pip ' comm and.

System Environment:
Operating system: windows8.1
Python version: 2.7.11, 3.4.4 installed simultaneously
python2.7.11 pip version: 8.0.1, needs to be upgraded to 8.1.2, but the upgrade times are wrong as follows and processed as follows.
python3.4.4 pip version: 8.1.1, need to upgrade to 8.1.2, Direct Upgrade command.

Reason analysis:
Since the previous installation of python2.7.11 and python3.4.4 was installed, a long time ago, the PIP was recently discovered and the PIP was not available.
Py2 Update times the following error.

The last update was a long time ago, and I'm not sure how to deal with it. Online check a lap, and finally finished, now record. The workaround is as follows:

1, download installation get-pip.py download Address: http://pan.baidu.com/s/1hr1XQBi
2, Installation get-pip.py installation command: Py2 C:\Python27\get-pip.py
3, PIP installation success, the following prompts:

4, the PIP after the successful installation, again update the PIP, the command is as follows: py2-m PIP install-u pip
The results are as follows:

5, you can see that the PIP has been upgraded from 8.0.3 to 8.1 1; same 4, upgrade again, get upgraded version 8.1.2:

c:\windows\system32>c:\python27\python2.exe-m pip install-u pip Setuptools

Collecting Pip

Using Cached PIP-8.1.2-PY2.PY3-NONE-ANY.WHL

Collecting Setuptools

Using Cached SETUPTOOLS-24.0.2-PY2.PY3-NONE-ANY.WHL

Installing collected Packages:pip, Setuptools

Found existing Installation:pip 8.0.3

Uninstalling pip-8.0.3:

Successfully uninstalled pip-8.0.3

Rolling back uninstall of PIP

Exception:

Traceback (most recent call last):

File "C:\Python27\lib\pip\basecommand.py", line 209, in main

Status = Self.run (options, args)

File "C:\Python27\lib\pip\commands\install.py", line 317, in run

Prefix=options.prefix_path,

File "C:\Python27\lib\pip\req\req_set.py", line 731, in install

**kwargs

File "C:\Python27\lib\pip\req\req_install.py", line 845, in install

Self.move_wheel_files (Self.source_dir, Root=root, Prefix=prefix)

File "C:\Python27\lib\pip\req\req_install.py", line 1044, in Move_wheel_files

Isolated=self.isolated,

File "C:\Python27\lib\pip\wheel.py", line 460, in Move_wheel_files

Generated.extend (Maker.make (spec))

File "C:\Python27\lib\pip\_vendor\distlib\scripts.py", line 372, in Make

Self._make_script (entry, filenames, options=options)

File "C:\Python27\lib\pip\_vendor\distlib\scripts.py", line 276, in _MAKE_SCRI

Pt

Self._write_script (Scriptnames, shebang, script, filenames, ext)

File "C:\Python27\lib\pip\_vendor\distlib\scripts.py", line 212, in _WRITE_SCR

Ipt

Launcher = self._get_launcher (' t ')

File "C:\Python27\lib\pip\_vendor\distlib\scripts.py", line 351, in _get_launc

Her

result = Finder (distlib_package). Find (name). bytes

Attributeerror: ' Nonetype ' object has no attribute ' bytes '

You are are using PIP version 8.0.3, however version 8.1.2 is available.

You should consider upgrading via the ' python-m pip install--upgrade pip ' comm

and.

C:\windows\system32>py2 C:\Python27\get-pip.py

C:\windows\system32>c:\python27\python2.exe C:\Python27\get-pip.py

Collecting Pip

Using Cached PIP-8.1.2-PY2.PY3-NONE-ANY.WHL

Installing collected Packages:pip

Found existing Installation:pip 8.0.3

Uninstalling pip-8.0.3:

Successfully uninstalled pip-8.0.3

Successfully installed pip-8.0.3

You are are using PIP version 8.0.3, however version 8.1.2 is available.

You should consider upgrading via the ' python-m pip install--upgrade pip ' comm

and.


after installing get-pip.py for the first time, you can see the PIP version successfully installed pip-8.1.1;

c:\windows\system32>py2-m Pip install-u pip

c:\windows\system32>c:\python27\python2.exe-m Pip install-u pip

Collecting Pip

Using Cached PIP-8.1.2-PY2.PY3-NONE-ANY.WHL

Installing collected Packages:pip

Found existing Installation:pip 8.0.3

Uninstalling pip-8.0.3:

Successfully uninstalled pip-8.0.3

Successfully installed pip-8.1.1

You are are using PIP version 8.1.1, however version 8.1.2 is available.

You should consider upgrading via the ' python-m pip install--upgrade pip ' comm

and.


The second run after installing get-pip.py, you can see the PIP version successfully installed pip-8.1.2;

c:\windows\system32>py2-m Pip install-u pip

c:\windows\system32>c:\python27\python2.exe-m Pip install-u pip

Collecting Pip

Using Cached PIP-8.1.2-PY2.PY3-NONE-ANY.WHL

Installing collected Packages:pip

Found existing Installation:pip 8.1.1

Uninstalling pip-8.1.1:

Successfully uninstalled pip-8.1.1

Successfully installed pip-8.1.2

C:\windows\system32>


python3.4.4 pip Upgrade Direct command can be, as follows.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.