WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.

Posted hupo376787

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.相关的知识,希望对你有一定的参考价值。

今天使用python命令行出现

WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the python -m pip install --upgrade pip command.

 

作为一个强迫症,当然是不能忍,必须升级到最新的。

然而按照提示输入

python -m pip install --upgrade pip

却出现了

PS C:UsersVincent> python -m pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f
3/pip-20.0.2-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 19.3.1
    Uninstalling pip-19.3.1:
      Successfully uninstalled pip-19.3.1
  Rolling back uninstall of pip
  Moving to c:usersvincentappdata
oamingpythonpython38scriptspip.exe
   from C:UsersVincentAppDataLocalTemppip-uninstall-sus0si9zpip.exe
  Moving to c:usersvincentappdata
oamingpythonpython38scriptspip3.8.exe
   from C:UsersVincentAppDataLocalTemppip-uninstall-sus0si9zpip3.8.exe
  Moving to c:usersvincentappdata
oamingpythonpython38scriptspip3.exe
   from C:UsersVincentAppDataLocalTemppip-uninstall-sus0si9zpip3.exe
  Moving to c:usersvincentappdata
oamingpythonpython38site-packagespip-19.3.1.dist-info   from C:UsersVincentAppDataRoamingPythonPython38site-packages~ip-19.3.1.dist-info
  Moving to c:usersvincentappdata
oamingpythonpython38site-packagespip   from C:UsersVincentAppDataRoamingPythonPython38site-packages~ip
ERROR: Exception:
Traceback (most recent call last):
  File "C:UsersVincentAppDataRoamingPythonPython38site-packagespip\_internalcliase_command.py", line 153, in
_main
    status = self.run(options, args)
  File "C:UsersVincentAppDataRoamingPythonPython38site-packagespip\_internalcommandsinstall.py", line 446, in
run
    installed = install_given_reqs(
  File "C:UsersVincentAppDataRoamingPythonPython38site-packagespip\_internal
eq\__init__.py", line 58, in insta
ll_given_reqs
    requirement.install(
nstall
    self.move_wheel_files(
  File "C:UsersVincentAppDataRoamingPythonPython38site-packagespip\_internal
eq
eq_install.py", line 487, in move_wheel_files
    wheel.move_wheel_files(
  File "C:UsersVincentAppDataRoamingPythonPython38site-packagespip\_internalwheel.py", line 594, in move_wheel_files
    generated_console_scripts = maker.make_multiple(scripts_to_generate)
  File "C:UsersVincentAppDataRoamingPythonPython38site-packagespip\_vendordistlibscripts.py", line 402, in make_multiple
    filenames.extend(self.make(specification, options))
  File "C:UsersVincentAppDataRoamingPythonPython38site-packagespip\_internalwheel.py", line 330, in make
    return super(PipScriptMaker, self).make(specification, options)
  File "C:UsersVincentAppDataRoamingPythonPython38site-packagespip\_vendordistlibscripts.py", line 391, in make
    self._make_script(entry, filenames, options=options)
  File "C:UsersVincentAppDataRoamingPythonPython38site-packagespip\_vendordistlibscripts.py", line 295, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "C:UsersVincentAppDataRoamingPythonPython38site-packagespip\_vendordistlibscripts.py", line 231, in _write_script
    launcher = self._get_launcher(t)
  File "C:UsersVincentAppDataRoamingPythonPython38site-packagespip\_vendordistlibscripts.py", line 370, in _ge    result = finder(distlib_package).find(name).bytes
AttributeError: NoneType object has no attribute bytes
WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the python -m pip install --upgrade pip command.

 

 

 

 

好气哦,给的提示竟然运行错误,

无奈上Google,发现了答案

 

easy_install -U pip

 

 

原文链接 https://github.com/pypa/pip/issues/7069

以上是关于WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.的主要内容,如果未能解决你的问题,请参考以下文章

WARNING: You are using pip version 20.2.3; however, version 21.2.4 is available.

解决:使用pip命令安装第三方库时报错WARNING: You are using pip version 19.2.3, however version 20.1.1 is available. Y

解决:使用pip命令安装第三方库时报错WARNING: You are using pip version 19.2.3, however version 20.1.1 is available. Y

Warning:you are installing software that contains unsigned content...

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to

Error Code: 1175. You are using safe update