如何在Windows的Anaconda Python 2.7 x64上安装Theano? [英] How to install Theano on Anaconda Python 2.7 x64 on Windows?

查看:90
本文介绍了如何在Windows的Anaconda Python 2.7 x64上安装Theano?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在Windows 7 x64的Anaconda Python 2.7 x64上安装Theano. Theano网站提供了一些说明,但尚不清楚Anaconda的特定内容.

I wonder how to install Theano on Anaconda Python 2.7 x64 on Windows 7 x64. The Theano website provides some instructions but is not clear as to what is specific to Anaconda.

推荐答案

我不是100%肯定,但这也许是最基本的说明,但前提是您不想使用GPU.让Theano在Windows上使用GPU困难得多.

I'm not 100% certain but this may be a minimal set of instructions, but only if you don't want to use a GPU. Getting Theano to use a GPU on Windows is quite a bit more difficult.

  1. 安装 TDM GCC x64.
  2. 安装Anaconda x64.
  3. 运行conda update conda.
  4. 运行conda update --all.
  5. 运行conda install mingw libpython.
  6. 安装Theano(执行此操作的方式取决于您是否要与Theano源代码进行交互,以及是否需要出血边缘"版本,或者对上一个但过时的专业感到满意释放).
  1. Install TDM GCC x64.
  2. Install Anaconda x64.
  3. run conda update conda.
  4. run conda update --all.
  5. run conda install mingw libpython.
  6. Install Theano (how you do this depends on whether you want to interact with the Theano source code or not, and whether you want the "bleeding edge" version, or are happy with the last, but out-of-date major release).
  1. 旧版本:例如pip install Theano.
  2. 出血版本:例如pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git(有关更多选项,请参见链接的文档)
  1. Older version: e.g. pip install Theano.
  2. Bleeding edge version: e.g. pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git (see linked documentation for more options)

如果您希望通过OpenMP支持多线程,那么事情会变得更加复杂.

If you want multithreading support via OpenMP then things get more complicated.

如果您想要GPU支持,事情会变得更加复杂.

If you want GPU support things get much more complicated.

Theano文档中的Windows安装说明充其量是零散的,而最糟糕的则是过时的.如果您需要的不仅仅是Windows上的基础知识,则需要逐步寻找适合自己的方法.

The Windows installation instructions in the Theano documentation are fragmented at best, and terribly out of date at worst. If you need more than the basics working on Windows, you'll need to pick your way through to find an approach that works for you.

这篇关于如何在Windows的Anaconda Python 2.7 x64上安装Theano?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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