【问题标题】:How to install Vowpal Wabbit on Amazon EC2 or SageMaker? (amazon linux)如何在 Amazon EC2 或 SageMaker 上安装 Vowpal Wabbit? (亚马逊Linux)
【发布时间】:2020-05-17 22:47:42
【问题描述】:

有人可以解释或帮助我在 Amazon linux 机器上安装 vowpalwabbit(我对 python 绑定感兴趣)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.

【问题讨论】:

  • 你成功了吗?我在这方面花了很多时间,但无法让它在 Amazon linux 上运行

标签: amazon-ec2 amazon-sagemaker vowpalwabbit amazon-linux


【解决方案1】:

1.5 年后再次测试,pip install vowpalwabbit 在笔记本实例上运行良好。在训练作业中,在 requirements.txt 发送到 AWS 管理的 Scikit 学习容器 (141502667606.dkr.ecr.eu-west-1.amazonaws.com/sagemaker-scikit-learn:0.23-1-cpu-py3) 中添加 vowpalwabbit 也会成功安装。两者都使用 vowpalwabbit-8.11.0 测试

【讨论】:

    【解决方案2】:

    看起来 SageMaker VW Docker 映像已经安装了 Python 绑定。见here

    根据他们的container repo,图片是:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-03-03
      • 1970-01-01
      • 2015-05-26
      • 2019-10-30
      • 1970-01-01
      • 2016-12-07
      • 1970-01-01
      • 2013-11-07
      相关资源
      最近更新 更多