gpt4 book ai didi

python-3.x - "python -m pip install --upgrade pip"异常错误

转载 作者:行者123 更新时间:2023-12-04 13:14:09 25 4
gpt4 key购买 nike

在 Windows 10 中,我以管理员身份运行终端,

出现异常错误。

我正在尝试升级 pip 但出现错误:

python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/43/84/23ed6a1796480a6f1a2d38f2802901d078266bda38388954d01d3f2e821d/pip-20.1.1-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\user1\appdata\roaming\python\python38\scripts\
from C:\Users\user1\AppData\Roaming\Python\Python38\~cripts
Moving to c:\users\user1\appdata\roaming\python\python38\site-packages\pip-19.3.1.dist-info\
from C:\Users\user1\AppData\Roaming\Python\Python38\site-packages\~ip-19.3.1.dist-info
Moving to c:\users\user1\appdata\roaming\python\python38\site-packages\pip\
from C:\Users\user1\AppData\Roaming\Python\Python38\site-packages\~ip
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\user1\AppData\Roaming\Python\Python38\site-packages\pip\_internal\cli\base_command.py", line 153, in _main
status = self.run(options, args)
File "C:\Users\user1\AppData\Roaming\Python\Python38\site-packages\pip\_internal\commands\install.py", line 446, in run
installed = install_given_reqs(
File "C:\Users\user1\AppData\Roaming\Python\Python38\site-packages\pip\_internal\req\__init__.py", line 58, in install_given_reqs
requirement.install(
File "C:\Users\user1\AppData\Roaming\Python\Python38\site-packages\pip\_internal\req\req_install.py", line 858, in install
self.move_wheel_files(
File "C:\Users\user1\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\user1\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\user1\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\user1\AppData\Roaming\Python\Python38\site-packages\pip\_internal\wheel.py", line 330, in make
return super(PipScriptMaker, self).make(specification, options)
File "C:\Users\user1\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\user1\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\user1\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 231, in _write_script
launcher = self._get_launcher('t')
File "C:\Users\user1\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 370, in _get_launcher
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.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

升级pip应该怎么做?谢谢

最佳答案

试试这个:

easy_install -U pip

如果上述命令不起作用,请尝试以下操作:

python -m pip install -U --force-reinstall pip

关于python-3.x - "python -m pip install --upgrade pip"异常错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62075208/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com