How do I install theano in Anaconda ver. 2.1 Windows 64 bit for Python 3.4?(如何在 Anaconda 版本中安装 theano.2.1 用于 Python 3.4 的 Windows 64 位?)
问题描述
我已经安装了 讨论中提到的更改,回复:[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 位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 Anaconda 版本中安装 theano.2.1 用于 Python 3


基础教程推荐
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 求两个直方图的卷积 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- 包装空间模型 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01