如何在Anaconda ver中安装theano. 2.1 Windows 64位适用于Python 3.4吗? [英] How do I install theano in Anaconda ver. 2.1 Windows 64 bit for Python 3.4?

查看:50
本文介绍了如何在Anaconda ver中安装theano. 2.1 Windows 64位适用于Python 3.4吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 Anaconda .现在,我想在Anaconda中安装Theano库.我已经尝试过:

I've installed Anaconda. Now I want to install the Theano library in Anaconda. I have tried:

  1. 用于Anaconda的Theano安装程序,来自 http://deeplearning.net/software/theano/install.html#windows-installer-for-anacondace ,但是会引发错误安装程序找不到已安装的Anaconda版本.请下载并安装Anaconda CE".我已经在环境变量路径中添加了〜/anaconda3,〜/anaconda3/scripts.

  1. 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.

我已尝试通过构建包来安装它,如StackOverflow上所述, 如何跟踪在Anaconda(Conda)环境中安装了pip安装的软件包? ,但这在软件包测试期间也失败了.错误屏幕截图如下:

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:

我什至安装了Python版本. 3.4,使用pip install安装了Theano,当我尝试导入Theano时,出现了与屏幕截图中的错误类似的错误.我尝试了 Google网上论坛讨论中提到的更改,

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.

推荐答案

在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安装程序一起使用,这几乎为您提供了开始开发所需的一切.

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.

您还需要使用重新安装Theano

You would also need to reinstall Theano using

pip install Theano

这篇关于如何在Anaconda ver中安装theano. 2.1 Windows 64位适用于Python 3.4吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆