[英]OSError: [Errno 13] Permission denied when updating setuptools
I'm trying to update setuptools using homebrew but I keep getting an error that says:我正在尝试使用自制软件更新 setuptools,但我不断收到错误消息:
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/setuptools-1.1.3-py2.7.egg'
How do I allow my computer to make changes to that file so I can update setuptools?如何允许我的计算机更改该文件以便我可以更新 setuptools?
I figured out how to fix it! 我想出了如何解决它! I looked up the name of that file
setuptools-0.6c11-py2.7.egg
and I found a python page on it that says 我查找了该文件
setuptools-0.6c11-py2.7.egg
,我发现它上面有一个python 页面
NOTE: Regardless of what sort of Python you're using, if you've previously installed older versions of setuptools, please delete all setuptools*.egg and setuptools.pth files from your system's site-packages directory (and any other sys.path directories) FIRST.
注意:无论您使用何种类型的Python,如果您以前安装过较旧版本的setuptools,请从系统的site-packages目录(以及任何其他sys.path)中删除所有setuptools * .egg和setuptools.pth文件。目录)第一。
So I deleted setuptools-0.6c11-py2.7.egg
and setuptools.pth
in /Library/Python/2.7/site-packages/
then I went into terminal and typed in pip install --upgrade setuptools
and it worked! 所以我删除
setuptools-0.6c11-py2.7.egg
和setuptools.pth
在/Library/Python/2.7/site-packages/
然后我去到终端和类型的pip install --upgrade setuptools
,它的工作!
Open Finder and select Go - Go To Folder. 打开Finder并选择Go - Go To Folder。 Then hit Command-I, and at the bottom under Sharing and Permissions, add yourself with Read and Write Access.
然后点击Command-I,在共享和权限下的底部,添加读写访问权限。 This should solve it.
这应该解决它。
There are some discussions and solutions in this link: Permission Denied Error when 'brew install python 这个链接中有一些讨论和解决方案: 'brew install python时权限被拒绝错误
I hope one of it working for you. 我希望其中一个为你工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.