作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
尝试在虚拟环境中通过 PIP 为 python 安装 PDAL 会导致配置错误。
我已经通过使用 cmake 和 ninja 构建它来安装 PDAL,并通过控制台和 ~/.bashrc 导出将/pdal/bin 文件夹添加到环境路径中。我可以正常运行 pdal 命令,但是由于没有可用的 pdal-config 而尝试运行“pip install pdal”时收到错误消息。
使用:$ export PATH="$PATH:/PDAL-1.7.2-src/build/bin/"
PDAL 命令从控制台工作sudo pip install pdal
错误:
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "/tmp/pip-install-cm90jl7u/pdal/setup.py", line 64, in get_pdal_config
stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pdal-config': 'pdal-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-cm90jl7u/pdal/setup.py", line 120, in <module>
for item in get_pdal_config('--python-version').split():
File "/tmp/pip-install-cm90jl7u/pdal/setup.py", line 68, in get_pdal_config
'Could not find pdal-config %r: %s' % (pdal_config, ex))
OSError: Could not find pdal-config 'pdal-config': [Errno 2] No such file or directory: 'pdal-config': 'pdal-config'
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-cm90jl7u/pdal/
最佳答案
尝试一个新的环境:
conda create -n pdal
conda activate pdal
conda install -c conda-forge pdal python-pdal gdal
关于python - pip install PDAL 失败,缺少 pdal-config,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56081078/
尝试在虚拟环境中通过 PIP 为 python 安装 PDAL 会导致配置错误。 我已经通过使用 cmake 和 ninja 构建它来安装 PDAL,并通过控制台和 ~/.bashrc 导出将/pda
我在 linux(ubuntu) 中安装 Pdal 库使用:pip install pdal 命令并得到这些错误: cc1plus: warning: command line option ‘-Ws
我正在尝试使用 filters.outlier 从点云中过滤异常值. PDAL 是 1.5 版本,在 ubuntu 14.04 中通过 Docker 安装和使用。 运行我的管道脚本时 { "p
我是一名优秀的程序员,十分优秀!