2016-12-15 186 views
1

Python 3.5,我试图找到命令来为Anaconda安装一个kersa Deep Learning软件包。为什么'conda install -c keras'无法正常工作?Keras在Anaconda的软件包安装?

+0

“畅达安装-c kersa”应该是“畅达安装-c keras”? – linpingta

+0

@linpingta是和“CondaValueError:值错误:太少的参数,必须提供命令行包规格或 - - 文件” – hhh

+1

我能够使用[本文]中列出的步骤安装Keras(https://stackoverflow.com /一个/896802分之47498448)。 – samthebrand

回答

-1

导航到Anaconda installation folder/Scriptspip命令

+0

你能澄清你如何访问文件夹以及如何找到它?我的安装目录*“〜/ anaconda3 /”*没有Scripts文件夹?你的意思是以某种方式在Anaconda浏览器(Anaconda Navigator)中安装或在系统的Bash中? – hhh

0

安装我是比较新的Keras以及Ubuntu和环境。不过我想我找到了一种方法。就像在安装Tensorflow(甚至Theano)时一样创建conda env。

使用 源激活

然后使用 混帐克隆https://github.com/fchollet/keras.git

然后进入keras文件夹并做 蟒蛇的setup.py安装 (不须藤) 输入ENV - 如果有任何权限错误使用chmod 777递归地

1

您可以使用此命令安装keras

conda install -c conda-forge keras 

这是根据文档 https://anaconda.org/conda-forge/keras

+0

https://anaconda.org/conda-forge/keras不是keras文档,它只是conda-forge软件包的一个页面 – endolith

0

的具体问题的答案是,-c选项将conda命令指定通道来搜索您要安装的软件包或包。

-c CHANNEL, --channel CHANNEL

Additional channel to search for packages. These are URLs searched in the order they are given (including file:// for local directories). Then, the defaults or channels from .condarc are searched (unless --override-channels is given). You can use 'defaults' to get the default packages for conda, and 'system' to get the system packages, which also takes .condarc into account. You can also use any name and the .condarc channel_alias value will be prepended. The default channel_alias is http://conda.anaconda.org/ .

你的命令conda install -c keras指定的通道称为keras(在默认channel_alias网址),但不会再指定任何要安装的软件包,所以这就是为什么你得到Value error: too few arguments错误。

由于马杜Babu的回答笔记,keras可在畅达锻渠道,使正确的命令是

conda install -c conda-forge keras 
相关问题