Skip to content

Document Windows 10 update solution #8450

Closed
@rowebyrowe

Description

@rowebyrowe

Environment

  • pip version: 20.0.1
  • Python version: 3.7.6
  • OS: Windows 10

Description

I am trying to upgrade pip and while rolling back the uninstall of pip, it runs into an exception telling me that it can't find t64.exe in pip._vendor.distlib. I'm presuming that it means "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip_vendor\distlib". I checked that folder and found t64.exe there.
Expected behavior

Pip should upgrade without any errors and should be able to notice t64.exe.
How to Reproduce

1.Open command prompt in admin mode
2. type 'python -m pip install --upgrade pip'

Output

C:\WINDOWS\system32>python -m pip install --upgrade pip
Collecting pip
  Using cached pip-20.1.1-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.1
    Uninstalling pip-20.0.1:
      Successfully uninstalled pip-20.0.1
  Rolling back uninstall of pip
  Moving to c:\users\jeffr\appdata\roaming\python\python37\scripts\pip.exe
   from C:\Users\jeffr\AppData\Local\Temp\pip-uninstall-6f_5wl4x\pip.exe
  Moving to c:\users\jeffr\appdata\roaming\python\python37\scripts\pip3.7.exe
   from C:\Users\jeffr\AppData\Local\Temp\pip-uninstall-6f_5wl4x\pip3.7.exe
  Moving to c:\users\jeffr\appdata\roaming\python\python37\scripts\pip3.exe
   from C:\Users\jeffr\AppData\Local\Temp\pip-uninstall-6f_5wl4x\pip3.exe
  Moving to c:\users\jeffr\appdata\roaming\python\python37\site-packages\pip-20.0.1.dist-info\
   from c:\users\jeffr\appdata\roaming\python\python37\site-packages\~ip-20.0.1.dist-info
  Moving to c:\users\jeffr\appdata\roaming\python\python37\site-packages\pip\
   from c:\users\jeffr\appdata\roaming\python\python37\site-packages\~ip
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_internal\cli\base_command.py", line 186, in _main
    status = self.run(options, args)
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_internal\commands\install.py", line 404, in run
    use_user_site=options.use_user_site,
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_internal\req\__init__.py", line 71, in install_given_reqs
    **kwargs
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_internal\req\req_install.py", line 815, in install
    warn_script_location=warn_script_location,
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_internal\operations\install\wheel.py", line 614, in install_wheel
    warn_script_location=warn_script_location,
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_internal\operations\install\wheel.py", line 548, in install_unpacked_wheel
    generated_console_scripts = maker.make_multiple(scripts_to_generate)
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\distlib\scripts.py", line 415, in make_multiple
    filenames.extend(self.make(specification, options))
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_internal\operations\install\wheel.py", line 280, in make
    return super(PipScriptMaker, self).make(specification, options)
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\distlib\scripts.py", line 404, in make
    self._make_script(entry, filenames, options=options)
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\distlib\scripts.py", line 304, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\distlib\scripts.py", line 239, in _write_script
    launcher = self._get_launcher('t')
  File "C:\Users\jeffr\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\distlib\scripts.py", line 383, 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.0.1; however, version 20.1.1 is available.
You should consider upgrading via the 'C:\ProgramData\Anaconda3\python.exe -m pip install --upgrade pip' command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions