linux - 在 Linux 上安装 block

标签 linux installation theano

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

  1. 正在安装 Anaconda for python2 .
  2. Theano 依赖于 numpy 1.10.1 版本。如果在这一步我将在 python shell 中运行 import theano 那么它将完美地工作。
  3. 好的,是时候玩 Blocks 了。我正在使用 pip install --user git+git://github.com/mila-udem/blocks.git\安装稳定版本 -r https://raw.githubusercontent.com/mila-udem/blocks/master/requirements.txt
  4. 在这一步之后,如果我导入 theano,它会给出以下信息:RuntimeError: module compiled against API version a but this version of numpy is 9
  5. 我查看了 requirements.txt,发现 Blocks 依赖于 numpy 1.9.3。
  6. 我卸载了 Theano、Blocks,使用 conda install numpy=1.9.3 降级了 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 但这个版本numpy 是 9

我怎样才能克服这个问题?

最佳答案

这可能是 Anaconda 发行版的问题。您可以尝试通过 conda update condaconda update --all 更新所有 Anaconda。您也可以尝试更改 Blocks requirements.txt 以引用 numpy 1.10.1,因为 Blocks 可能不会关心从 1.9 到 1.10 的更改。 – 丹尼尔·伦肖

关于linux - 在 Linux 上安装 block ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34115810/

相关文章:

linux - Nginx 守护进程无法重新启动/停止/启动

c# - C++ linux 和 C# windows 上的等效加密/解密函数

linux - 错误 : gdal-config not found while installing R dependent packages whereas gdal is installed

使用 time_zone_name 时 MySQL CONVERT_TZ 返回 null

python - theano 中用索引矩阵索引张量?

linux - 如何在 php 文件中搜索特定关键字?

linux - 如何知道 Socket 客户端断开连接?

scripting - 一步安装程序

python - Keras VGG 提取特征

linux - Theano 搜索 CUDA 7.5 文件,但我安装了 CUDA 8。如何告诉它使用 CUDA 8?