我使用:pip install pdal
命令在linux(ubuntu)中安装Pdal库并获取这些错误:
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from pdal/libpdalpython.cpp:487:
/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
pdal/libpdalpython.cpp:489:32: **fatal error:** pdal/plang/Array.hpp: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
我搜索了此错误的解决方案,但没有得到与之相关的任何内容。
答案 0 :(得分:0)
对你来说也许是一个可行的解决方案(当你第一次问到时它是不可用的)将通过Conda而不是pip进行安装。有关详细信息,请参阅https://pdal.io/download.html#conda。我们的Conda软件包将安装PDAL和Python扩展,并且在Linux,Windows和Mac上都受支持。