如何用 python3.6 安装 theano?

How to install theano with python3.6?

我正在使用 conda 安装带有 python3.6 的 theano,但出现以下错误:

$ conda install theano
Fetching package metadata ...........
Solving package specifications: .


UnsatisfiableError: The following specifications were found to be in conflict:
  - python 3.6*
  - theano -> python 2.7* -> openssl 1.0.1*
Use "conda info <package>" to see the dependencies for each package.

theano 似乎不适用于 python3.6。这是我用 python3.6 安装它的方法吗?

不,Python 3.6 上没有适用于 theano 的 conda 包:

https://repo.continuum.io/pkgs/free/linux-64/

您可以选择 2.7、3.4 和 3.5。

或者,您可以使用 pip:

从源代码构建 Theano
pip install Theano

此库没有 conda 包。

使用pip install Theano

您可能需要在 pip 命令之前添加 sudo 以安装到系统的站点包目录中。如果你没有管理员权限访问你的机器,你可以使用

在本地安装 Theano(到 ~/.local)

pip install Theano --user

http://deeplearning.net/software/theano/install.html#

Python 3.6需要pip3安装Theano包

$git clone git://github.com/Theano/Theano.git
$cd Theano
$sudo pip3 install -e .

安装 theano/pymc3 和 python 3.6 for windows 10

我在寻找使 pymc3 正常工作的安装时遇到了严重的问题。使用 "import pymc3" 我通常会遇到致命错误。根据许多博客贡献——我测试了所有……——它似乎是一个还不完全稳定的程序。但是:基于 Anaconda 发行版,follwing 对我有用(对于 Jupyter 也):

(另请参阅:http://deeplearning.net/software/theano/install_windows.html)

  1. conda 安装 theano
  2. conda 安装 pygpu
  3. pip install pymc3(使用python 3.6时需要pip)

您不能在 Python 3.6 上安装 theano 如果您愿意,您可以选择以下版本之一:

Python == 2.7* or ( >= 3.3 and < 3.6 )