Win10 pip version 9.0.1 upgrade error summary,

During the recent reinstallation of TensorFlow , an abnormal problem that the pip version needs to be updated suddenly appeared , as follows:

Youare using pip version 9.0.1, however version 10.0.1 is available.

Youshould consider upgrading via the 'python -m pip install --upgrade pip'command.

Then when the above blue command is executed, an exception is thrown, as follows

Exception:

Traceback (most recent call last):

  File"C:\Program Files\Python36\lib\shutil.py", line 544, in move

   os.rename(src, real_dst)

PermissionError: [WinError 5] Access is denied. :'c:\\program files\\python36\\lib\\site-packages\\pip-9.0.1.dist-info\\description.rst'

. . . . . .

PermissionError: [WinError 5] Access is denied. :'c:\\programfiles\\python36\\lib\\site-packages\\pip-9.0.1.dist-info\\description.rst'

You are using pip version 9.0.1, howeverversion 10.0.1 is available.

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

Finally, it turns out that the update of pip needs to execute the command as an administrator. The administrator command window under Win10 seems to be PowerShell, the administrator identity of cmd has not been found, double-click the mouse in the lower right corner of the screen, and a list of system management functions will appear, one of which is PowerShell administrator (A), and finally prompts that the installation is successful,



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324603773&siteId=291194637