
我一直在嘗試在我的機器上安裝 graphlab,但一直遇到錯誤。我使用了以下命令:
pip 安裝 graphlab-create
然後它會運行大部分安裝,但會拋出以下異常和錯誤清單:
Found existing installation: boto 2.38.0
DEPRECATION: Uninstalling a distutils installed project (boto) 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 boto-2.38.0:
Exception:
Traceback (most recent call last):
File "/home/catman/anaconda2/lib/python2.7/site-packages/pip/basecommand.py", line 211, in main
status = self.run(options, args)
File "/home/catman/anaconda2/lib/python2.7/site-packages/pip/commands/install.py", line 311, in run
root=options.root_path,
File "/home/catman/anaconda2/lib/python2.7/site-packages/pip/req/req_set.py", line 640, in install
requirement.uninstall(auto_confirm=True)
File "/home/catman/anaconda2/lib/python2.7/site-packages/pip/req/req_install.py", line 716, in uninstall
paths_to_remove.remove(auto_confirm)
File "/home/catman/anaconda2/lib/python2.7/site-packages/pip/req/req_uninstall.py", line 125, in remove
renames(path, new_path)
File "/home/catman/anaconda2/lib/python2.7/site-packages/pip/utils/__init__.py", line 315, in renames
shutil.move(old, new)
File "/home/catman/anaconda2/lib/python2.7/shutil.py", line 303, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/home/catman/anaconda2/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg-info'
請幫忙!我不確定 boto 的現有安裝是否有問題,所以我將其包括在內。我很感激任何建議。
編輯:
根據AB的要求,我添加了以下資訊:
File: ‘/home/catman/anaconda2/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg-info’
Size: 8590 Blocks: 24 IO Block: 4096 regular file
Device: 802h/2050d Inode: 25827741 Links: 2
Access: (0664/-rw-rw-r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2015-11-05 12:51:31.373372011 +0700
Modify: 2015-04-24 04:06:03.000000000 +0700
Change: 2015-11-05 09:39:58.559261464 +0700
Birth: -
答案1
正如您在 的輸出中看到的stat /home/catman/anaconda2/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg-info
,僅root
具有必要的存取權限。
更正錯誤的所有者和群組:
sudo chown -R $USER:$USER /home/catman/anaconda2