python - 安装gecode-python时出现 fatal error

标签 python

我正在尝试安装一个名为 python-gecode 的约束编程库 Gecode 的 python 包装器 https://pypi.python.org/pypi/gecode-python/ 无论我如何安装它,我都会收到相同的错误“没有这样的文件或目录”。这是设置脚本输出:

running install
running build
running build_py
running build_ext
building 'gecode._gecode' extension
C:\MinGW32-xy\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DDISJUNCTOR "-IC:\Program Files\Gecode\include" -IC:\Python27\include -IC:\Python27\PC -c _gecode.cc -o build\temp.win32-2.7\Release\_gecode.o
_gecode.cc:5:24: fatal error: 4.2.1: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1"

但是 _gecode.cc 位于该文件夹中。我真的不明白有什么问题。我尝试使用 pip、easy_install、手动安装进行安装,每次都会收到此错误。 你知道是什么原因造成的吗?

谢谢!

最佳答案

Gecode-Python 仅支持最高版本的 Gecode 4.0.0,因此请使用该版本而不是 4.2.1。

关于python - 安装gecode-python时出现 fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20705158/

相关文章:

python - 如何解析 (1045, "Access denied for user ' User' @'IP or host' (using password : YES)") when build django docker container?

python - 为什么 NetBeans 不能识别 Django 语法?

python - Instagram Api 与包 python-instagram 更改范围

python - 在 python 中为 insert() 编写更快的实现

python - Flask-SQLAlchemy 中的批量操作存在问题。无法找到已配置的绑定(bind)(...)

python - 推荐使用 [python-lifter] 进行查询的嵌套数据结构

python - Matplotlib - 强制绘图显示然后返回主代码

python - 为什么这个 Python 脚本会删除 '.txt' 文件,以及所有 '.tmp' 文件?

多处理期间的 Python stdout

python - 查找python脚本所需的模块