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.
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/03/16 13:52