安装graphlab时出错

时间:2016-03-05 08:58:35

标签: macos python-2.7 pip sudo graphlab

我尝试使用pip命令安装graphlab,我们在命令中输入电子邮件地址和产品密钥。我尝试升级它。我正在使用sudo pip命令,我正在使用Mac。我每次都得到这个例外而且它失败了。我可以安装dmg但这很容易。我想知道如何修复此异常。例外情况如下:

Exception:
Traceback (most recent call last):
  File "/Users/karthik/Library/Python/2.7/lib/python/site-packages/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
  File "/Users/karthik/Library/Python/2.7/lib/python/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/Users/karthik/Library/Python/2.7/lib/python/site-packages/pip/req/req_set.py", line 725, in install
    requirement.uninstall(auto_confirm=True)
  File "/Users/karthik/Library/Python/2.7/lib/python/site-packages/pip/req/req_install.py", line 756, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Users/karthik/Library/Python/2.7/lib/python/site-packages/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Users/karthik/Library/Python/2.7/lib/python/site-packages/pip/utils/__init__.py", line 266, 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-zVJZnq-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

1 个答案:

答案 0 :(得分:0)

如果您使用的是ipython笔记本,请尝试:

!pip install