質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.47%
pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

Q&A

解決済

1回答

1851閲覧

pipのバージョンアップに関して

AN3000

総合スコア37

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

0グッド

0クリップ

投稿2021/10/15 08:15

コマンドプロンプトで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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

ネット検索検索してみましたが、アップグレードではなく、一度アンインストールしてからインストールしなおすとうまくいくような投稿が多くみられました。

アンインストールしても問題ないようでしたら、以下を試してみるのはいかがでしょうか。

bash

1>python -m pip uninstall pip 2>python -m ensurepip 3>python -m pip install -U pip

投稿2021/10/19 14:25

tyamzak_

総合スコア95

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

AN3000

2021/10/30 02:41

ありがとうございます。さっそくやってみます!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.47%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問