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:\Users\Vincent> 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:\users\vincent\appdata\roaming\python\python38\scripts\pip.exe
   from C:\Users\Vincent\AppData\Local\Temp\pip-uninstall-sus0si9z\pip.exe
  Moving to c:\users\vincent\appdata\roaming\python\python38\scripts\pip3.8.exe
   from C:\Users\Vincent\AppData\Local\Temp\pip-uninstall-sus0si9z\pip3.8.exe
  Moving to c:\users\vincent\appdata\roaming\python\python38\scripts\pip3.exe
   from C:\Users\Vincent\AppData\Local\Temp\pip-uninstall-sus0si9z\pip3.exe
  Moving to c:\users\vincent\appdata\roaming\python\python38\site-packages\pip-19.3.1.dist-info   from C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\~ip-19.3.1.dist-info
  Moving to c:\users\vincent\appdata\roaming\python\python38\site-packages\pip   from C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\~ip
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\pip\_internal\cli\base_command.py", line 153, in
_main
    status = self.run(options, args)
  File "C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\pip\_internal\commands\install.py", line 446, in
run
    installed = install_given_reqs(
  File "C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\pip\_internal\req\__init__.py", line 58, in insta
ll_given_reqs
    requirement.install(
nstall
    self.move_wheel_files(
  File "C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\pip\_internal\req\req_install.py", line 487, in move_wheel_files
    wheel.move_wheel_files(
  File "C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\pip\_internal\wheel.py", line 594, in move_wheel_files
    generated_console_scripts = maker.make_multiple(scripts_to_generate)
  File "C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 402, in make_multiple
    filenames.extend(self.make(specification, options))
  File "C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\pip\_internal\wheel.py", line 330, in make
    return super(PipScriptMaker, self).make(specification, options)
  File "C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 391, in make
    self._make_script(entry, filenames, options=options)
  File "C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 295, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 231, in _write_script
    launcher = self._get_launcher(‘t‘)
  File "C:\Users\Vincent\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.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

原文地址:https://www.cnblogs.com/hupo376787/p/12586797.html

时间: 2024-11-08 22:38:30

WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.的相关文章

解决Python中出现的问题: “You are using pip version 9.0.1, however version 19.2.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.”

1. 一开始我在使用Pycharm时,导入numpy库,发现导入错误: Non-zero exit code (1) 2. 于是我通过更新的方法来解决,哪知道在更新的时候也出现了错误,错误如下图: 这个错误是在告诉我,我的版本低,需要升级更高的版本才能使用命令python -m pip install --upgrade pip 3. 输入: conda install pip 命令提示我又出现了错误,内容是You don't appear to have the necessary permi

python中pip版本升级error:You are using pip version 7.1.2, however version 8.1.1 is available.

使用pip install安装命令时,会报错:You are using pip version 7.1.2, however version 8.1.1 is available. 尝试了推荐解决办法“python -m pip install --upgrade pip”仍然更新pip版本失败. 查找网上资料,用"easy_install"命令解决了问题. C:\Program Files\Python27\Scripts>easy_install.exe pip=8.1.1

Matlab 之 Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3.

save mat文件的时候出现以下错误: matlab错误提示: Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3. To save this variable, use the -v7.3 switch. Skipping... 解决办法: 1.打开matlab,file/preferences,general选项卡-MAT-Files,选择第一个. 2.save -v7.3 

You are using pip version 8.1.2, however version 9.0.1 is available.

[[email protected] ~]# pip install virtualenvmapperCollecting virtualenvmapper  Could not find a version that satisfies the requirement virtualenvmapper (from versions: )No matching distribution found for virtualenvmapperYou are using pip version 8.1

php5.6,Ajax报错,Warning: Cannot modify header information - headers already sent in Unknown on line 0

php5.6ajax报错 Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unkno

2.18 特殊权限set_uid 2.19 特殊权限set_gid 2.20 特殊权限stick_bit 2.21 软链接文件 2.22 硬连接文件

2.18 特殊权限set_uid 2.19 特殊权限set_gid 2.20 特殊权限stick_bit 2.21 软链接文件 2.22 硬连接文件 2.18 特殊权限set_uid passwd 有setuid 权限 s 是set_uid的权限 更改密码的文件 即使是000权限,root 也可以更改这个文件 passwd 有setuid 权限  当普通用户执行该命令的时候,就会临时拥有root用户的身份 给用户设置uid 前提是 这个文件是 二进制文件 ,而且是一个可执行文件 怎么给一个文件

错误:Cannot mix incompatible Qt library (version 0x50601) with this library (version 0x50602) 已放弃

今天在编译完deepin最新的软件包安装器,运行的时候出现Cannot mix incompatible Qt library (version 0x50601) with this library (version 0x50602) 已放弃这个错误,搜索了一下,发现网上的解决方法寥寥无几,但最终还是找到了方法成功解决了. 错误:Cannot mix incompatible Qt library (version 0x50601) with this library (version 0x50

PHP "Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0" 错误

遇到这个问题,研究了很久,结果发现上传的文件的全部没有读权限 不只是文件夹,上传的文件也要至少添加+444的权限,也就是读的权限 Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/mnt/yun0/api/login.php' (include_path='.:/opt/lampp/lib/p

File system needs to be upgraded. You have version null and I want version 7

安装hbase时候报错: File system needs to be upgraded. You have version null and I want version 7 注: 我安装的hbase依赖于hdfs, hdfs是有nameservice的. 解决方法: 1. 首先查看hbase的配置文件,hbase-site.xml, 找到hbase.rootdir的value值, 这个值里面的/hbase1 中存放了hbase的信息 <property>        <name&