gpt4 book ai didi

python - 操作系统错误 : [Errno 13] Permission denied when updating setuptools

转载 作者:太空狗 更新时间:2023-10-29 22:22:38 25 4
gpt4 key购买 nike

我正在尝试使用 Homebrew 软件更新 setuptools,但我不断收到一条错误消息:

OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/setuptools-1.1.3-py2.7.egg'

如何允许我的计算机对该文件进行更改以便我可以更新设置工具?

最佳答案

我想出了解决办法!我查了那个文件的名字setuptools-0.6c11-py2.7.egg我发现了一个 python page on it就是说

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.

所以我删除了setuptools-0.6c11-py2.7.eggsetuptools.pth/Library/Python/2.7/site-packages/然后我进入终端并输入 pip install --upgrade setuptools它奏效了!

关于python - 操作系统错误 : [Errno 13] Permission denied when updating setuptools,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22121569/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com