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

pip upgrade ValueError #9975

Closed
michaldengusiak opened this issue May 12, 2021 · 3 comments
Closed

pip upgrade ValueError #9975

michaldengusiak opened this issue May 12, 2021 · 3 comments
Labels
resolution: duplicate Duplicate of an existing issue/PR

Comments

@michaldengusiak
Copy link

michaldengusiak commented May 12, 2021

Description

I am unable to upgrade pip

Expected behavior

allow upgrading to 21.1.1upgrading

pip version

21.0

Python version

3.8

OS

Windows 10.0.18363

How to Reproduce

  1. Get pip 21.0
  2. Then try to run command to upgrade
  3. An error occurs.

Output

I am using Windows 10.0.18363


P:\>pip --version
pip 21.0 from C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip (python 3.8)

I try to upgrade to

I got an error as above

P:\>C:\Users\DengusiakM\AppData\Local\Programs\Python\Python38-32\python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in c:\users\dengusiakm\appdata\roaming\python\python38\site-packages (21.0)
Collecting pip
  Using cached pip-21.1.1-py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.0
    Uninstalling pip-21.0:
      Successfully uninstalled pip-21.0
  Rolling back uninstall of pip
  Moving to c:\users\dengusiakm\appdata\roaming\python\python38\scripts\
   from C:\Users\DengusiakM\AppData\Roaming\Python\Python38\~cripts
  Moving to c:\users\dengusiakm\appdata\roaming\python\python38\site-packages\pip-21.0.dist-info\
   from C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\~ip-21.0.dist-info
  Moving to c:\users\dengusiakm\appdata\roaming\python\python38\site-packages\pip\
   from C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\~ip
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_internal\cli\base_command.py", line 189, in _main
    status = self.run(options, args)
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_internal\cli\req_command.py", line 178, in wrapper
    return func(self, options, args)
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_internal\commands\install.py", line 391, in run
    installed = install_given_reqs(
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_internal\req\__init__.py", line 80, in install_given_reqs
    requirement.install(
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_internal\req\req_install.py", line 788, in install
    install_wheel(
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_internal\operations\install\wheel.py", line 819, in install_wheel
    _install_wheel(
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_internal\operations\install\wheel.py", line 729, in _install_wheel
    generated_console_scripts = maker.make_multiple(scripts_to_generate)
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 418, in make_multiple
    filenames.extend(self.make(specification, options))
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_internal\operations\install\wheel.py", line 471, in make
    return super().make(specification, options)
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 407, in make
    self._make_script(entry, filenames, options=options)
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 307, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 242, in _write_script
    launcher = self._get_launcher('t')
  File "C:\Users\DengusiakM\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\distlib\scripts.py", line 386, in _get_launcher
    raise ValueError(msg)
ValueError: Unable to find resource t32.exe in package pip._vendor.distlib
WARNING: You are using pip version 21.0; however, version 21.1.1 is available.
You should consider upgrading via the 'C:\Users\DengusiakM\AppData\Local\Programs\Python\Python38-32\python.exe -m pip install --upgrade pip' command.

I already try to run
C:\Users\DengusiakM\AppData\Local\Programs\Python\Python38-32\python.exe -m pip install --upgrade pip



### Code of Conduct

- [X] I agree to follow the [PSF Code of Conduct](https://www.python.org/psf/conduct/).
@michaldengusiak michaldengusiak added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels May 12, 2021
@michaldengusiak
Copy link
Author

I follow steps #9972

have this file and I got full control when I did the right click and checked the setting for my user name...
image

copy from other issue

@Jarmos-san
Copy link

Did you install Python from python.org or elsewhere? If you installed it from MS Store, then it's know to have some hard-to-debug issues (refer to #9972 (comment)).

The other suspect could be your anti-virus (or Windows Defender) and/or administrative access. So, check for these first & get back.

@uranusjr
Copy link
Member

See #8450. Some contribution on documentation and error message improvement would be greatly appreciated.

@uranusjr uranusjr added resolution: duplicate Duplicate of an existing issue/PR and removed S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels May 18, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

3 participants