pip установить PDAL не удалось, отсутствует pdal-config - PullRequest
1 голос
/ 10 мая 2019

Попытка установить PDAL для python через PIP в виртуальной среде приводит к ошибке конфигурации.

Я установил PDAL, собрав его с помощью cmake и ninja, и добавил папку / pdal / bin в путь к среде через экспорт через консоль и ~ / .bashrc. Я могу запускать команды pdal в обычном режиме, однако получаю сообщение об ошибке при попытке запустить «pip install pdal» из-за отсутствия pdal-config.

с помощью: $ 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/
...