安装gecodepython时出现致命错误

2024-06-16 13:48:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试在约束编程库Gecode上安装一个python包装器,称为pythongecode 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"

但是_通用电气代码.cc在文件夹里。我真的不明白是什么问题。我试着用pip安装,easy-tu安装,手动安装,每次我遇到这个错误。 知道是什么原因造成的吗?在

谢谢!在


Tags: httpsbuildpypiinclude编程错误errorrunning