【问题标题】:Can't install Vowpal Wabbit Python Wrapper Ubuntu 16.04无法安装 Vowpal Wabbit Python Wrapper Ubuntu 16.04
【发布时间】:2018-04-11 05:21:27
【问题描述】:

我在安装 Vowpal Wabbit Python Wrapper 时遇到问题:

$ pip3 install vowpalwabbit

错误:

lto1: fatal error: bytecode stream generated with LTO version 6.0 instead of the expected 4.1

error message

请注意

  • libboost-program-options-devzlib1g-devlibboost-python-dev 已安装,
  • anaconda boost 已安装。

系统凭据: Ubuntu 16.04、Anaconda3 for Python 3.6、g++ 5.4.0。

谢谢!

【问题讨论】:

    标签: python pip g++ ubuntu-16.04 vowpalwabbit


    【解决方案1】:

    终于,我明白了!我的解决方案是:

    1. 下载gcc-3.4.6和g++-3.4.6的安装包(人家说这个版本是"very close" to 4.1

    2. 安装下载的包:

      $ sudo dpkg -i compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb $ sudo dpkg -i compat-gcc-34-c++_3.4.6-20_amd64.deb

    3. 将gcc编译器的默认版本改为3.4.6:

      $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50

    4. 安装 VW Python Wrapper:

      $ pip3 install vowpalwabbit

    5. 改回编译器的默认版本:

      $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

    所以,它对我有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-11-16
      • 2015-02-19
      • 1970-01-01
      • 2019-06-08
      • 1970-01-01
      • 2023-04-10
      • 2018-06-09
      • 1970-01-01
      相关资源
      最近更新 更多