Python easy_install 给出 [errno13]

发布于 2024-09-28 06:53:33 字数 464 浏览 0 评论 0原文

我正在尝试安装 Hookbox 但没有成功,当我调用 easy_install 时或者

python setup.py install

它给了我[Errno 13]权限被拒绝:'/usr/local/lib/python2.6/site-packages/test-easy-install-68779.write-test'

当我尝试向该目录授予写入权限时,它给出了

chmod: /usr/local/lib/python2.6/site-packages/: Operation not permitted

是否有任何方法可以解决此问题或在不使用 easy_install 的情况下安装 hookbox?

I'm tring to install Hookbox but without success, when I call easy_install or

python setup.py install

it gives me [Errno 13] Permission denied: '/usr/local/lib/python2.6/site-packages/test-easy-install-68779.write-test'

When I try to grant write permissions to this derectory it gives

chmod: /usr/local/lib/python2.6/site-packages/: Operation not permitted

is there any way to solve this prob or install hookbox without easy_install?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

残龙傲雪 2024-10-05 06:53:33

您应该使用适当的权限来安装

sudo python setup.py install

另一个选项是使用 virtualenv 创建一个隔离环境,您可以在其中安装

另一种方法是在您有权限的地方安装一些东西。

python setup.py install --home=<dir>

另请参阅带有选项前缀的备用 unix 安装

python setup.py install --prefix=/usr/local

请参阅文档中这些选项的详细信息: http://docs.python .org/install/

如果你问我的偏好,我会选择 virtualenv、virtualenvwrapper、pip 和 yolk 来管理外部模块。谷歌为他们

You should have used appropriate privilege to install

sudo python setup.py install

Another option is to use virtualenv to create a isolated environment where you could install

Another way is too install some where, where you have permission.

python setup.py install --home=<dir>

see also the alternate unix installation with option prefix

python setup.py install --prefix=/usr/local

See the details of these options in the docs: http://docs.python.org/install/

If you ask my preference it would be virtualenv, virtualenvwrapper, pip and yolk to manage external modules. google for them

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文