我一直在尝试在我的计算机上安装 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