小编Wal*_*tti的帖子

python setup.py build_ext --include-dirs =/usr/include/gdal/not work

我正在尝试安装GDAL ina virstualenvwrapper,遵循几个指南和StackOverflow答案.

我在Ubuntu 13.04我istalled ligbdal1libgdal1-dev

在我的virtualenv里面,我尝试过:

pip install --no-install GDAL
Run Code Online (Sandbox Code Playgroud)

...之后:

python setup.py build_ext --include-dirs=/usr/include/gdal/
Run Code Online (Sandbox Code Playgroud)

但是我得到了这个错误:

running build_ext
building 'osgeo._gdal' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/gdal/ -I/usr/include/python2.7 -I/home/envs/test/local/lib/python2.7/site-packages/numpy/core/include -I/usr/include -c extensions/gdal_wrap.cpp -o build/temp.linux-x86_64-2.7/extensions/gdal_wrap.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
extensions/gdal_wrap.cpp: In function ‘int PyProgressProxy(double, const char*, void*)’:
extensions/gdal_wrap.cpp:3237:2: warning: the address of ‘_Py_NoneStruct’ will never be NULL [-Waddress]
extensions/gdal_wrap.cpp: In …
Run Code Online (Sandbox Code Playgroud)

python gdal virtualenvwrapper

3
推荐指数
1
解决办法
2491
查看次数

标签 统计

gdal ×1

python ×1

virtualenvwrapper ×1