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

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

新規登録して質問してみよう
ただいま回答率
85.48%
Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

pip

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

openSUSE

openSUSEは、OpenSUSE プロジェクトによって開発されている、コミュニティベースのLinuxディストリビューションです。デスクトップやサーバなどで動作し、Webページ閲覧や、メールや写真の管理、オフィスソフト、映像・音楽の再生など、ソフトウェアパッケージが多いことが特徴です。

Q&A

解決済

1回答

7900閲覧

pipをアップデートしようしたんですが。

Bolshikh_i_mal

総合スコア32

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

pip

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

openSUSE

openSUSEは、OpenSUSE プロジェクトによって開発されている、コミュニティベースのLinuxディストリビューションです。デスクトップやサーバなどで動作し、Webページ閲覧や、メールや写真の管理、オフィスソフト、映像・音楽の再生など、ソフトウェアパッケージが多いことが特徴です。

0グッド

0クリップ

投稿2019/03/16 13:15

amazonのlightsailのopenSUSEにmezzanineをインストールする前に
pipをアップデートした方がいいと思って、
やってみたんですがこれが出てしまいました。
どうしたらいいでしょうか?

pip

1The directory '/home/ec2-user/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 2The directory '/home/ec2-user/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 3Collecting pip 4 Downloading https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl (1.4MB) 5 100% |████████████████████████████████| 1.4MB 394kB/s 6Installing collected packages: pip 7 Found existing installation: pip 7.1.2 8 Uninstalling pip-7.1.2: 9Exception: 10Traceback (most recent call last): 11 File "/usr/lib64/python3.4/shutil.py", line 527, in move 12 os.rename(src, real_dst) 13PermissionError: [Errno 13] Permission denied: '/usr/bin/pip' -> '/tmp/pip-l92cul9w-uninstall/usr/bin/pip' 14 15During handling of the above exception, another exception occurred: 16 17Traceback (most recent call last): 18 File "/usr/lib/python3.4/site-packages/pip/basecommand.py", line 211, in main 19 status = self.run(options, args) 20 File "/usr/lib/python3.4/site-packages/pip/commands/install.py", line 311, in run 21 root=options.root_path, 22 File "/usr/lib/python3.4/site-packages/pip/req/req_set.py", line 640, in install 23 requirement.uninstall(auto_confirm=True) 24 File "/usr/lib/python3.4/site-packages/pip/req/req_install.py", line 716, in uninstall 25 paths_to_remove.remove(auto_confirm) 26 File "/usr/lib/python3.4/site-packages/pip/req/req_uninstall.py", line 125, in remove 27 renames(path, new_path) 28 File "/usr/lib/python3.4/site-packages/pip/utils/__init__.py", line 315, in renames 29 shutil.move(old, new) 30 File "/usr/lib64/python3.4/shutil.py", line 532, in move 31 os.unlink(src) 32PermissionError: [Errno 13] Permission denied: '/usr/bin/pip' 33You are using pip version 7.1.2, however version 19.0.3 is available. 34You should consider upgrading via the 'pip install --upgrade pip' command.

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

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

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

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

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

guest

回答1

0

ベストアンサー

sudo pip install --upgrade pipのようにしてみてはいかがでしょうか。

投稿2019/03/16 13:36

hayataka2049

総合スコア30933

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

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

Bolshikh_i_mal

2019/03/16 13:52

一瞬で終わりました! ありがとうございます!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問