[英]How to install theano with python3.6?
我使用conda
安装theano与python3.6但得到以下错误:
$ 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
Windows 10使用Python 3.6安装theano / pymc3
我遇到了严重的问题,无法找到使pymc3正常工作的安装。 使用“ import pymc3”,通常会出现致命错误。 根据许多博客贡献-我测试了所有...。-这似乎是一个尚未完全稳定的过程。 但是:根据Anaconda发行版,以下对我有用 ( 对Jupyter也是如此 ):
( 另请参见: http : //deeplearning.net/software/theano/install_windows.html )
该库没有conda软件包。
使用pip install Theano
您可能需要在pip命令之前添加sudo才能安装到系统的site-packages目录中。 如果您没有管理员访问计算机的权限,则可以使用以下命令在本地安装Theano(至〜/ .local):
pip install Theano --user
Python 3.6需要pip3来安装Theano软件包。
$git clone git://github.com/Theano/Theano.git
$cd Theano
$sudo pip3 install -e .
如果要选择以下版本之一,则无法在Python 3.6上安装theano:
Python == 2.7* or ( >= 3.3 and < 3.6 )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.