我正在尝试在我的Linux机器上安装Blocks,但遇到了一些问题。我该如何解决?我正在执行以下步骤:
- 安装Anaconda for python2。
- Theano依赖于numpy 1.10.1版本。如果在这一步中我在python shell中运行
import theano
,那么它将完美地工作。 - 好的,是时候安装Blocks了。我使用
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
。 - 我查看了requirements.txt并发现Blocks依赖于numpy 1.9.3。
- 我卸载了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 but this version of numpy is 9
。
我该如何克服这个问题?
conda update conda
和conda update --all
更新所有Anaconda。您还可以尝试更改Blocks requirements.txt以引用numpy 1.10.1,因为Blocks很可能不会关心从1.9到1.10的更改。 - Daniel Renshawmnist = MNIST(("train",))
。它输出fuel.exceptions.ConfigurationError: Configuration not set and no default provided: data_path.
- Jihad