Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Upgrade 20.0.2 to 20.2.4 on Windows 10/Python 3.8.2 #9043

Closed
robphill opened this issue Oct 23, 2020 · 2 comments
Closed

Can't Upgrade 20.0.2 to 20.2.4 on Windows 10/Python 3.8.2 #9043

robphill opened this issue Oct 23, 2020 · 2 comments
Labels
OS: windows Windows specific type: support User Support

Comments

@robphill
Copy link

  • pip version: 20.0.2
  • Python version: 3.8.2
  • Operating system: Windows 10

C:\Users\robphill>python --version
Python 3.8.2

C:\Users\robphill>pip --version
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see #5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
pip 20.0.2 from C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages\pip (python 3.8)

c:\Users\robphill\AppData\Roaming\Python\Python38>python -m pip install -U pip
Collecting pip
Using cached pip-20.2.4-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.0.2
Uninstalling pip-20.0.2:
Successfully uninstalled pip-20.0.2
Rolling back uninstall of pip
Moving to c:\users\robphill\appdata\roaming\python\python38\scripts\pip.exe
from C:\Users\robphill\AppData\Local\Temp\pip-uninstall-q0mnc93k\pip.exe
Moving to c:\users\robphill\appdata\roaming\python\python38\scripts\pip3.8.exe
from C:\Users\robphill\AppData\Local\Temp\pip-uninstall-q0mnc93k\pip3.8.exe
Moving to c:\users\robphill\appdata\roaming\python\python38\scripts\pip3.exe
from C:\Users\robphill\AppData\Local\Temp\pip-uninstall-q0mnc93k\pip3.exe
Moving to c:\users\robphill\appdata\roaming\python\python38\site-packages\pip-20.0.2.dist-info
from C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages~ip-20.0.2.dist-info
Moving to c:\users\robphill\appdata\roaming\python\python38\site-packages\pip
from C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages~ip
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages\pip_internal\cli\base_command.py", line 186, in main
status = self.run(options, args)
File "C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages\pip_internal\commands\install.py", line 395, in run
installed = install_given_reqs(
File "C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages\pip_internal\req_init
.py", line 67, in install_given_reqs
requirement.install(
File "C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages\pip_internal\req\req_install.py", line 809, in install
install_wheel(
File "C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages\pip_internal\operations\install\wheel.py", line 607, in install_wheel
install_unpacked_wheel(
File "C:\Users\robphill\AppData\Roaming\Python\Python38\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\robphill\AppData\Roaming\Python\Python38\site-packages\pip_vendor\distlib\scripts.py", line 415, in make_multiple
filenames.extend(self.make(specification, options))
File "C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages\pip_internal\operations\install\wheel.py", line 280, in make
return super(PipScriptMaker, self).make(specification, options)
File "C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages\pip_vendor\distlib\scripts.py", line 404, in make
self._make_script(entry, filenames, options=options)
File "C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages\pip_vendor\distlib\scripts.py", line 304, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
File "C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages\pip_vendor\distlib\scripts.py", line 239, in _write_script
launcher = self._get_launcher('t')
File "C:\Users\robphill\AppData\Roaming\Python\Python38\site-packages\pip_vendor\distlib\scripts.py", line 383, in _get_launcher
raise ValueError(msg)
ValueError: Unable to find resource t32.exe in package pip._vendor.distlib
WARNING: You are using pip version 20.0.2; however, version 20.2.4 is available.
You should consider upgrading via the 'C:\Program Files (x86)\Python38-32\python.exe -m pip install --upgrade pip' command.

c:\Users\robphill\AppData\Roaming\Python\Python38>

Can someone help me get pip updated?

@robphill robphill changed the title Can't Upgrade 20.0.2 to 20.2.4 on Windows 10/ Can't Upgrade 20.0.2 to 20.2.4 on Windows 10/Python 3.8.2 Oct 23, 2020
@brainwane brainwane added OS: windows Windows specific type: support User Support labels Oct 23, 2020
@uranusjr
Copy link
Member

See #8450. The usual cause to this is you have a corrupted pip installation. The linked issue provides methods to recover from that (ensurepip).

@pradyunsg
Copy link
Member

Closing since there has been no activity/discussion here.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
OS: windows Windows specific type: support User Support
Projects
None yet
Development

No branches or pull requests

4 participants