在Linux上安装块

时间:2015-12-06 09:15:42

标签: linux install theano

我试图在我的Linux机器上install Blocks,我遇到了一些麻烦。我怎样才能解决这个问题?我正在执行以下步骤:

  1. 正在安装Anaconda for python2
  2. Theano依赖于numpy 1.10.1版本。如果在这一步我将在python shell中运行import theano,那么它将完美地工作。
  3. 好的,这是Block的时间。我使用pip install --user git+git://github.com/mila-udem/blocks.git \ -r https://raw.githubusercontent.com/mila-udem/blocks/master/requirements.txt
  4. 安装稳定版本
  5. 在此步骤之后,如果我导入theano,则会提供以下内容:RuntimeError: module compiled against API version a but this version of numpy is 9
  6. 我查看了requirements.txt,看看Blocks取决于numpy 1.9.3。
  7. 我使用conda install numpy=1.9.3卸载了Theano,Blocks,降级了numpy,然后再次运行pip install --user git+git://github.com/mila-udem/blocks.git \ -r https://raw.githubusercontent.com/mila-udem/blocks/master/requirements.txt并在导入theano时仍然给我RuntimeError: module compiled against API version a but this version of numpy is 9
  8. 我该如何克服这个问题?

1 个答案:

答案 0 :(得分:0)

这可能是Anaconda发行版的一个问题。您可以尝试通过conda update condaconda update --all更新所有Anaconda。您也可以尝试更改Blocks requirements.txt以引用numpy 1.10.1,因为Blocks可能不关心从1.9到1.10的更改。                      - Daniel Renshaw

相关问题