gpt4 book ai didi

python - Buildout 尝试更新系统范围的分发安装并拒绝运行

转载 作者:太空狗 更新时间:2023-10-29 20:20:43 27 4
gpt4 key购买 nike

Buildout 不喜欢我的系统范围的 Distribute 安装并拒绝运行:

plone@s15447224:~/mybuildout$ python bootstrap.py 
Creating directory '/home/plone/mybuildout/bin'.
Creating directory '/home/plone/mybuildout/parts'.
Creating directory '/home/plone/mybuildout/eggs'.
Creating directory '/home/plone/mybuildout/develop-eggs'.
Getting distribution for 'distribute==0.6.14'.
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /usr/lib/python2.6/dist-packages
Non-egg installation
Removing elements out of the way...
Already patched.
/usr/lib/python2.6/dist-packages/setuptools.egg-info already patched.
After install bootstrap.
Creating /usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg-info
error: /usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg-info: Permission denied
An error occurred when trying to install distribute 0.6.14. Look above this message for any errors that were output by easy_install.
While:
Bootstrapping.
Getting distribution for 'distribute==0.6.14'.
Error: Couldn't install: distribute 0.6.14

有没有什么方法可以告诉 buildout 安装它自己的 Distribute 而不是干扰系统范围的 Python 安装?

我知道 virtualenv。但是,仅仅安装 virtualenv 来让构建过程变得愉快似乎有点矫枉过正。一定有其他方法。

python 2.6。克隆 4.1。 Ubuntu 10.4。

最佳答案

是的,使用运行带有“-S”参数的 Python 的 Buildout 1.5.x(-S:在初始化时不暗示“导入站点”)。

(您也可以尝试将系统范围的 Distribute 升级到最新版本)

关于python - Buildout 尝试更新系统范围的分发安装并拒绝运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5818100/

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