我尝试使用 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'