[英]GDAL installation error "error: command 'x86_64-linux-gnu-gcc' failed with exit status 1"
[英]error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
我是python的新手,对linux命令了解不多。 所以请考虑我的问题。 我试图运行命令:
python pyglpk_setup.py build
但我得到以下结果:
running build
running build_ext
building 'glpk' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -Isrc -I/usr/include/python2.7 -c src/glpk.c -o build/temp.linux-x86_64-2.7/src/glpk.o -m64
x86_64-linux-gnu-gcc: error: src/glpk.c: No such file or directory
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
我认为我已经安装了依赖项并尝试了其他方法使其运行,但是我无法解决它。
为什么会出现此错误?
似乎您的glpk损坏了:
错误:src / glpk.c:没有这样的文件或目录
请获取一个新的“ glpk-0.3.tar.gz” https://pypi.python.org/packages/dc/6c/33e383f6613a90865bddeb1666c2b6121563b21a41d12d75bc2836a6bfdb/glpk-0.3.tar.gz
$ tar xvf glpk-0.3.tar.gz
$ cd glpk-0.3/
$ python setup.py build
→→这里没有错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.