我们使用主流的TensorFlow作为Keras的底层实现。
Keras需要依赖下面的库,确保电脑上已经安装:
- Python 3
- NumPy
- SciPy
- Matplotlib
- TensorFlow
检查一下是否安装正确:
命令行上输入:
> python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
导入库并打印版本:
>>> import numpy
>>> print (numpy.__version__)
1.16.4
>>> import scipy
>>> print (scipy.__version__)
1.3.0
>>> import matplotlib
>>> print (matplotlib.__version__)
3.1.1
>>> import tensorflow
>>> print (tensorflow.__version__)
1.14.0
>>>