windows10+Python3.6+Anaconda3+Keras2.2.4配置和安装

windows10+Python3.6+Anaconda3+Keras2.2.4配置和安装 

先安装tensorflow,详见 windows10+Python3.6+Anaconda3+tensorflow1.10.0配置和安装 https://www.cnblogs.com/jeshy/p/10520337.html

(base) C:\Users\jiangshan>conda info -e
# conda environments:
#
base * S:\Users\jiangshan\Anaconda3
deeplearning S:\Users\jiangshan\Anaconda3\envs\deeplearning
tensorflow S:\Users\jiangshan\Anaconda3\envs\tensorflow

(base) C:\Users\jiangshan>conda activate tensorflow

(tensorflow) C:\Users\jiangshan>conda install keras

=======================================================================================
Collecting package metadata: done
Solving environment: done

## Package Plan ##

environment location: S:\Users\jiangshan\Anaconda3\envs\tensorflow

added / updated specs:
- keras

The following packages will be downloaded:

package | build
---------------------------|-----------------
h5py-2.9.0 |nompi_py36h3cb27cb_1102 914 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
hdf5-1.10.4 |nompi_hcc15c50_1105 34.9 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
keras-2.2.4 | py36_0 458 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
keras-applications-1.0.4 | py_1 26 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
keras-preprocessing-1.0.2 | py_1 26 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
libgpuarray-0.7.6 | hfa6e2cd_1003 314 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
mako-1.0.7 | py_1 57 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
markupsafe-1.1.1 | py36hfa6e2cd_0 28 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
pygpu-0.7.6 |py36h452e1ab_1000 583 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
pyreadline-2.1 | py36_1000 140 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
pyyaml-3.13 |py36hfa6e2cd_1001 147 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
theano-1.0.4 |py36h6538335_1000 3.7 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
vs2015_win-64-14.0.25123 | h17c34da_3 5 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
yaml-0.1.7 | hfa6e2cd_1001 221 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
------------------------------------------------------------
Total: 41.5 MB

The following NEW packages will be INSTALLED:

h5py anaconda/cloud/conda-forge/win-64::h5py-2.9.0-nompi_py36h3cb27cb_1102
hdf5 anaconda/cloud/conda-forge/win-64::hdf5-1.10.4-nompi_hcc15c50_1105
keras anaconda/cloud/conda-forge/win-64::keras-2.2.4-py36_0
keras-applications anaconda/cloud/conda-forge/noarch::keras-applications-1.0.4-py_1
keras-preprocessi~ anaconda/cloud/conda-forge/noarch::keras-preprocessing-1.0.2-py_1
libgpuarray anaconda/cloud/conda-forge/win-64::libgpuarray-0.7.6-hfa6e2cd_1003
mako anaconda/cloud/conda-forge/noarch::mako-1.0.7-py_1
markupsafe anaconda/cloud/conda-forge/win-64::markupsafe-1.1.1-py36hfa6e2cd_0
pygpu anaconda/cloud/conda-forge/win-64::pygpu-0.7.6-py36h452e1ab_1000
pyreadline anaconda/cloud/conda-forge/win-64::pyreadline-2.1-py36_1000
pyyaml anaconda/cloud/conda-forge/win-64::pyyaml-3.13-py36hfa6e2cd_1001
theano anaconda/cloud/conda-forge/win-64::theano-1.0.4-py36h6538335_1000
vs2015_win-64 anaconda/cloud/conda-forge/win-64::vs2015_win-64-14.0.25123-h17c34da_3
yaml anaconda/cloud/conda-forge/win-64::yaml-0.1.7-hfa6e2cd_1001

========================================================================

测试:

(tensorflow) C:\Users\jiangshan>python
Python 3.6.7 (default, Feb 28 2019, 07:28:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import keras
Using TensorFlow backend.
>>>

成功

猜你喜欢

转载自www.cnblogs.com/jeshy/p/10529863.html