Как установить Vowpal Wabbit на Amazon EC2 или SageMaker? (амазонка linux) - PullRequest
0 голосов
/ 01 февраля 2020

Может кто-нибудь объяснить или помочь мне установить vowpalwabbit (меня интересуют привязки python) на машине Amazon linux, либо EC2, либо SageMaker? по какой-то причине это очень сложно, и я не могу найти что-либо об этом в Интернете ...

a pip install vowpalwabbit возвращает

Using cached https://files.pythonhosted.org/packages/d1/5a/9fcd64fd52ad22e2d1821b2ef871e8783c324b37e2103e7ddefa776c2ed7/vowpalwabbit-8.8.0.tar.gz
Building wheels for collected packages: vowpalwabbit
  Building wheel for vowpalwabbit (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0]= '"'"'/tmp/pip-install-tvp1174t/vowpalwabbit/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tvp1174t/vowpalwabbit/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-x0j85ac_ --python-tag cp36
       cwd: /tmp/pip-install-tvp1174t/vowpalwabbit/

ниже в ошибке, я также вижу :

CMake Error at /usr/lib64/python3.6/dist-packages/cmake/data/share/cmake-3.13/Modules/FindBoost.cmake:2100 (message):
    Unable to find the requested Boost libraries.

    Boost version: 1.53.0

    Boost include path: /usr/include

    Could not find the following Boost libraries:

            boost_python3

    Some (but not all) of the required Boost libraries were found.  You may
    need to install these additional Boost libraries.  Alternatively, set
    BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
    to the location of Boost.

1 Ответ

0 голосов
/ 04 февраля 2020

Похоже, что в образе SageMaker VW Docker уже установлены привязки Python. См. здесь .

На основе их контейнера репо , изображение:

462105765813.dkr.ecr.<region>.amazonaws.com/sagemaker-rl-vw-container:vw-8.7.0-cpu
...