コマンドプロンプトでpipのバージョンアップをしたいのですが、エラーが出てしまいできません。わかる方ぜひ教えていただけると幸いです。
C:\Users\Owner>pip install --upgrade pip Requirement already satisfied: pip in c:\users\owner\appdata\roaming\python\python39\site-packages (21.2.4) Collecting pip Using cached pip-21.3-py3-none-any.whl (1.7 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 21.2.4 Uninstalling pip-21.2.4: Successfully uninstalled pip-21.2.4 Rolling back uninstall of pip Moving to c:\users\owner\appdata\roaming\python\python39\scripts\pip.exe from C:\Users\Owner\AppData\Local\Temp\pip-uninstall-1zgoteh7\pip.exe Moving to c:\users\owner\appdata\roaming\python\python39\scripts\pip3.9.exe from C:\Users\Owner\AppData\Local\Temp\pip-uninstall-1zgoteh7\pip3.9.exe Moving to c:\users\owner\appdata\roaming\python\python39\scripts\pip3.exe from C:\Users\Owner\AppData\Local\Temp\pip-uninstall-1zgoteh7\pip3.exe Moving to c:\users\owner\appdata\roaming\python\python39\site-packages\pip-21.2.4.dist-info\ from C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\~ip-21.2.4.dist-info Moving to c:\users\owner\appdata\roaming\python\python39\site-packages\pip\ from C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\~ip ERROR: Exception: Traceback (most recent call last): File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_internal\cli\base_command.py", line 173, in _main status = self.run(options, args) File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_internal\cli\req_command.py", line 203, in wrapper return func(self, options, args) File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_internal\commands\install.py", line 390, in run installed = install_given_reqs( File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_internal\req\__init__.py", line 73, in install_given_reqs requirement.install( File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_internal\req\req_install.py", line 758, in install install_wheel( File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_internal\operations\install\wheel.py", line 794, in install_wheel _install_wheel( File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_internal\operations\install\wheel.py", line 704, in _install_wheel generated_console_scripts = maker.make_multiple(scripts_to_generate) File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_vendor\distlib\scripts.py", line 422, in make_multiple filenames.extend(self.make(specification, options)) File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_internal\operations\install\wheel.py", line 448, in make return super().make(specification, options) File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_vendor\distlib\scripts.py", line 411, in make self._make_script(entry, filenames, options=options) File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_vendor\distlib\scripts.py", line 312, in _make_script self._write_script(scriptnames, shebang, script, filenames, ext) File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_vendor\distlib\scripts.py", line 242, in _write_script launcher = self._get_launcher('t') File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\pip\_vendor\distlib\scripts.py", line 390, in _get_launcher raise ValueError(msg) ValueError: Unable to find resource t64.exe in package pip._vendor.distlib WARNING: You are using pip version 21.2.4; however, version 21.3 is available. You should consider upgrading via the 'c:\python39\python.exe -m pip install --upgrade pip' command.
以下も同様なエラーがでます。
pip3 install --upgrade pip
python -m pip install --upgrade pip
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/10/30 02:41