我正在尝试安装一个名为 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/