Pdal安装过程中出错

2024-04-18 16:52:01 发布

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

我在linux(ubuntu)中使用:pip install pdal命令安装Pdal library,得到以下错误:

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

我搜索了这个错误的解决方案,但没有得到任何相关的信息。在


Tags: fromcorenumpyapiincludelinuxlibpackages
1条回答
网友
1楼 · 发布于 2024-04-18 16:52:01

也许对您来说一个可行的解决方案(当您第一次提出要求时,这是不可用的)是通过Conda而不是pip安装。有关详细信息,请参见https://pdal.io/download.html#conda。我们的Conda包将同时安装PDAL和Python扩展,并在Linux、Windows和Mac上受支持。在

相关问题 更多 >