Я не знаю, что происходит, когда при попытке обновить pip с 20.2.2 до 20.2.3 отображаются ошибки

#python

#python

Вопрос:

 C:Userssulav>python get-pip.py
python: can't open file 'get-pip.py': [Errno 2] No such file or directory

C:Userssulav>python -m pip install -U pip
Collecting pip
  Using cached pip-20.2.3-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.2.2
    Uninstalling pip-20.2.2:
      Successfully uninstalled pip-20.2.2
  Rolling back uninstall of pip
  Moving to c:userssulavappdataroamingpythonpython37scriptspip.exe
   from C:UserssulavAppDataLocalTemppip-uninstall-plw0b_z7pip.exe
  Moving to c:userssulavappdataroamingpythonpython37scriptspip3.7.exe
   from C:UserssulavAppDataLocalTemppip-uninstall-plw0b_z7pip3.7.exe
  Moving to c:userssulavappdataroamingpythonpython37scriptspip3.exe
   from C:UserssulavAppDataLocalTemppip-uninstall-plw0b_z7pip3.exe
  Moving to c:userssulavappdataroamingpythonpython37site-packagespip-20.2.2.dist-info
   from c:userssulavappdataroamingpythonpython37site-packages~ip-20.2.2.dist-info
  Moving to c:userssulavappdataroamingpythonpython37site-packagespip
   from c:userssulavappdataroamingpythonpython37site-packages~ip
ERROR: Exception:
Traceback (most recent call last):
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_internalclibase_command.py", line 216, in _main
    status = self.run(options, args)
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_internalclireq_command.py", line 182, in wrapper
    return func(self, options, args)
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_internalcommandsinstall.py", line 421, in run
    pycompile=options.compile,
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_internalreq__init__.py", line 90, in install_given_reqs
    pycompile=pycompile,
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_internalreqreq_install.py", line 821, in install
    requested=self.user_supplied,
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_internaloperationsinstallwheel.py", line 860, in install_wheel
    requested=requested,
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_internaloperationsinstallwheel.py", line 762, in _install_wheel
    generated_console_scripts = maker.make_multiple(scripts_to_generate)
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_vendordistlibscripts.py", line 418, in make_multiple
    filenames.extend(self.make(specification, options))
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_internaloperationsinstallwheel.py", line 498, in make
    return super(PipScriptMaker, self).make(specification, options)
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_vendordistlibscripts.py", line 407, in make
    self._make_script(entry, filenames, options=options)
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_vendordistlibscripts.py", line 307, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_vendordistlibscripts.py", line 242, in _write_script
    launcher = self._get_launcher('t')
  File "C:UserssulavAppDataRoamingPythonPython37site-packagespip_vendordistlibscripts.py", line 386, in _get_launcher
    raise ValueError(msg)
ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available.
You should consider upgrading via the 'C:UserssulavAppDataLocalProgramsPythonPython37python.exe -m pip install --upgrade pip' command.
  

Ответ №1:

Вам нужно загрузить get-pip.py и убедиться, что вы находитесь в этом каталоге, когда пытаетесь его установить. Например, я вижу, что каталог, в котором вы находитесь, C:Userssulav> убедитесь, что он загружен в этот каталог.