更新点时出现错误。如何正确更新点数?

时间:2020-04-18 08:16:09

标签: python pip

我正在尝试将python的pip从19.3.1版本升级到20.0.2。 Python版本3.8 当我输入"python -m pip install --upgrade pip"更新点时,我得到的只是错误消息:

"ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\43898\AppData\Roaming\Python\Python38\site-packages\pip\_internal\cli\base_command.py", line 153, in _main
    status = self.run(options, args)
  File "C:\Users\43898\AppData\Roaming\Python\Python38\site-packages\pip\_internal\commands\install.py", line 446, in run
    installed = install_given_reqs(
  File "C:\Users\43898\AppData\Roaming\Python\Python38\site-packages\pip\_internal\req\__init__.py", line 58, in install_given_reqs
    requirement.install(
  File "C:\Users\43898\AppData\Roaming\Python\Python38\site-packages\pip\_internal\req\req_install.py", line 858, in install
    self.move_wheel_files(
  File "C:\Users\43898\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\43898\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\43898\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\43898\AppData\Roaming\Python\Python38\site-packages\pip\_internal\wheel.py", line 330, in make
    return super(PipScriptMaker, self).make(specification, options)
  File "C:\Users\43898\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\43898\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\43898\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 231, in _write_script
    launcher = self._get_launcher('t')
  File "C:\Users\43898\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.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command."

我尝试手动更新pip,重新安装到python 3.8.2的最新版本,卸载python,然后再次安装。没有成功。 Pip也没有安装新软件包。 我希望我已经为解决问题做好了准备。

0 个答案:

没有答案
相关问题