官术网_书友最值得收藏!

Installing Keras

conda-forge  is a GitHub entity with a repository of  conda  recipes.
  1. Next, we will install Keras using conda from conda-forge
  2. Execute the following command on the Terminal:
conda install -c conda-forge keras

The following listed output will confirm that Keras is installed:

Fetching package metadata .............
Solving package specifications: .
Package plan for installation in environment /home/ubuntu/miniconda2:

The following new packages will also be installed:

h5py: 2.7.1-py27_2 conda-forge
hdf5: 1.10.1-1 conda-forge
keras: 2.0.9-py27_0 conda-forge
libgfortran: 3.0.0-1
pyyaml: 3.12-py27_1 conda-forge
Proceed ([y]/n)? y
libgfortran-3. 100% |#############################################################| Time: 0:00:00 35.16 MB/s
hdf5-1.10.1-1. 100% |#############################################################| Time: 0:00:00 34.26 MB/s
pyyaml-3.12-py 100% |#############################################################| Time: 0:00:00 60.08 MB/s
h5py-2.7.1-py2 100% |#############################################################| Time: 0:00:00 58.54 MB/s
keras-2.0.9-py 100% |#############################################################| Time: 0:00:00 45.92 MB/s
  1. Let's verify the Keras installation with the following code:
$ python
Python 2.7.14 |Anaconda, Inc.| (default, Oct 16 2017, 17:29:19)
  1. Execute the following command to verify that Keras has been installed:
> from keras.models import Sequential
Using TensorFlow backend.
>>>

Notice that Keras is using the TensorFlow backend.

主站蜘蛛池模板: 霸州市| 和静县| 周宁县| 北碚区| 南和县| 汉中市| 富宁县| 洪江市| 休宁县| 闸北区| 呼伦贝尔市| 肥西县| 法库县| 莫力| 延长县| 卢氏县| 仙游县| 昔阳县| 紫金县| 宿松县| 湘潭市| 蒙山县| 霍州市| 江陵县| 霍州市| 林州市| 西乌| 闽侯县| 剑川县| 呼伦贝尔市| 龙泉市| 兖州市| 台湾省| 滨海县| 沙坪坝区| 峨山| 格尔木市| 香河县| 梅河口市| 丰顺县| 佛冈县|