Numpy: numpy(python)をアンインストールできないのはなぜですか? 実行する方法 ?

作成日 2016年11月13日  ·  6コメント  ·  ソース: numpy/numpy

numpy git:(master) sudo pip   uninstall  numpy


The directory '/Users/tonylibai/Library/Caches/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.
DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling numpy-1.8.0rc1:
  /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info
Proceed (y/n)? y
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/uninstall.py", line 76, in run
    requirement_set.uninstall(auto_confirm=options.yes)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 346, in uninstall
    req.uninstall(auto_confirm=auto_confirm)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 267, in renames
    shutil.move(old, new)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
    copystat(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
    os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-gCa9Bv-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'
The directory '/Users/tonylibai/Library/Caches/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.`

`` `

最も参考になるコメント

私は「方法」が必要です、

あなたは「なぜ」を与える、

他の人にあなたの助けを与えてください。

全てのコメント6件

エラーメッセージはそれ自体を非常に明確にしました: Operation not permitted 。 つまり、あなたにはこの仕事を終える許可がありません。

アンインストールする方法を教えてください。

エラーメッセージはすでにあなたに道を案内しています:

ディレクトリ '/ Users / tonylibai / Library / Caches / pip / http'またはその親ディレクトリは現在のユーザーによって所有されておらず、キャッシュは無効になっています。 そのディレクトリの権限と所有者を確認してください。 sudoを使用してpipを実行する場合は、sudoの-Hフラグが必要になる場合があります。

エラーメッセージを注意深く読んでみませんか?

私は「方法」が必要です、

あなたは「なぜ」を与える、

他の人にあなたの助けを与えてください。

問題追跡システムは主にバグレポート用であり、一般的なユーザーサポートの質問用ではないことに注意してください。
これらの質問には、stackoverflow.com、superuser.com、またはメーリングリストの方が適しています。

私が今まで見た中で最もおかしな問題

このページは役に立ちましたか?
0 / 5 - 0 評価