gpt4 book ai didi

python - 使用 easy_install 时出现安装错误

转载 作者:太空宇宙 更新时间:2023-11-04 11:28:21 25 4
gpt4 key购买 nike

我在 Linux Mandriva 中安装了 Edgewall Trac0.11,我需要一个用于 Python2.5 的模块 setuptools-0.6c11-py2.5.egg。

当我运行以下命令时:

sh setuptools-0.6c11-py2.5.egg

我得到一个错误:

error: Invalid Python installation: 
unable to open /usr/lib/python2.5/config/Makefile (No such file or directory)

我按照这里的描述做:http://pypi.python.org/pypi/setuptools#downloads

我可以指定安装路径:

sh setuptools-0.6c11-py2.5.egg --install-dir /var/setuptool

但是出现同样的错误。

我做错了什么?

最佳答案

一种替代方法是尝试为 setuptools 安装 Mandriva 包:

$ yum install python-setuptools

关于python - 使用 easy_install 时出现安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13099242/

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