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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· winform 绘制太阳,地球,月球 运作规律
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
2018-03-28 UWP 拖拽文件