羅 中勇
unread,Apr 17, 2023, 10:46:41 AM4/17/23You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
When I using pip list, it tells me there is a new release of pip is available, but I got these error messages when I upgrading pip. I don’t know what happened it is.
PS C:\Users\USER> pip --version pip
pip 23.0.1 from C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip (python 3.10)
PS C:\Users\USER> python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in c:\users\user\appdata\roaming\python\python310\site-packages (23.0.1)
Collecting pip
Using cached pip-23.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.0.1
Uninstalling pip-23.0.1:
Successfully uninstalled pip-23.0.1
Rolling back uninstall of pip
Moving to c:\users\user\appdata\roaming\python\python310\scripts\pip.exe
from C:\Users\USER\AppData\Local\Temp\pip-uninstall-byh29tpt\pip.exe
Moving to c:\users\user\appdata\roaming\python\python310\scripts\pip3.10.exe
from C:\Users\USER\AppData\Local\Temp\pip-uninstall-byh29tpt\pip3.10.exe
Moving to c:\users\user\appdata\roaming\python\python310\scripts\pip3.exe
from C:\Users\USER\AppData\Local\Temp\pip-uninstall-byh29tpt\pip3.exe
Moving to c:\users\user\appdata\roaming\python\python310\site-packages\pip-23.0.1.dist-info\
from C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\~ip-23.0.1.dist-info
Moving to c:\users\user\appdata\roaming\python\python310\site-packages\pip\
from C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\~ip
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\cli\base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\commands\install.py", line 507, in run
installed = install_given_reqs(
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\req\__init__.py", line 73, in install_given_reqs
requirement.install(
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\req\req_install.py", line 796, in install
install_wheel(
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\operations\install\wheel.py", line 729, in install_wheel
_install_wheel(
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\operations\install\wheel.py", line 646, in _install_wheel
generated_console_scripts = maker.make_multiple(scripts_to_generate)
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\distlib\scripts.py", line 436, in make_multiple
filenames.extend(self.make(specification, options))
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_internal\operations\install\wheel.py", line 427, in make
return super().make(specification, options)
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\distlib\scripts.py", line 425, in make
self._make_script(entry, filenames, options=options)
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\distlib\scripts.py", line 325, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\distlib\scripts.py", line 249, in _write_script
launcher = self._get_launcher('t')
File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip\_vendor\distlib\scripts.py", line 404, in _get_launcher
raise ValueError(msg)
ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
[notice] A new release of pip is available: 23.0.1 -> 23.1
[notice] To update, run: python.exe -m pip install --upgrade pip