問題描述
我已經安裝了 討論中提到的更改,回復:[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模板網!