我已经安装了 讨论中提到的更改,回复:[theano-users] 在 Windows 上安装 Theano for Python 3,但没有运气.
在 Python 3.4 上运行 Theano 很复杂.到目前为止,我建议您在 Python 2.7 中运行 Theano.为 Theano 编写的库是基于 Python 2.6+ 的.因此,为了让 Theano 在 Python 3.4 中运行,您需要 2to3 自动化 Python 2 到 3 代码翻译工具.我没有使用 2to3 测试过 Theano,所以我无法评论它是否有效.但是,我使用的是 Python 2.7,而 Theano 运行顺畅.此外,您可能希望将 AnacondaCE 与 Python 2.7 安装程序一起使用,它几乎为您提供了开始开发所需的一切.
您还需要重新安装 Theano 使用
pip install Theano
I've installed Anaconda. Now I want to install the Theano library in Anaconda. I have tried:
The Theano installer for Anaconda from http://deeplearning.net/software/theano/install.html#windows-installer-for-anacondace, but it raises error "The installer could not find a version of Anaconda installed. Please download and install Anaconda CE". I have added ~/anaconda3, ~/anaconda3/scripts to the environment variable path.
I have tried to install it by building the package as mentioned on Stack Overflow, How do I keep track of pip-installed packages in an Anaconda (Conda) environment?, but this also fails during the testing of package. The error screenshot is below:
I have even installed Python ver. 3.4, installed Theano using pip install, and when I tried to import Theano it gave an error similar to the error in the screen shot. I tried the changes mentioned in this Google Groups discussion, Re: [theano-users] Install Theano on Windows for Python 3, but no luck.
Running Theano on Python 3.4 is complicated. So far I would recommend that you run Theano in Python 2.7. The libraries written for Theano are Python 2.6+ based. So in order to get Theano running in Python 3.4, you would be needing the 2to3 automated python 2 to 3 code translation tool. I haven't tested Theano using 2to3, so I can't comment on whether it would work or not. But, I am using Python 2.7 and Theano works smoothly. Also, you might want to use AnacondaCE with Python 2.7 installer which pretty much gives you everything you need to start developing.
You would also need to reinstall Theano using
pip install Theano
这篇关于如何在 Anaconda 版本中安装 theano.2.1 用于 Python 3.4 的 Windows 64 位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!