Keras 安装

版权声明:本文为博主原创文章,未经博主允许不得转载。对于文中涉及到的参考文章,感谢作者分享,侵删。 https://blog.csdn.net/Kohang/article/details/83215948

1. 系统

· 放弃Windows
· 放弃使用个人的Mac (使用云服务器)
所以使用Linux, 这里使用Cent OS。

2.安装

选择Anaconda—— 全面

2.1 安装 Anaconda

下载并运行安装包,依照提示操作即可

wget https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh | sh
2.2安装 TensorFlow
CPU版本: conda install tensorflow
GPU版本: conda instal tensorflow-gpu
2.3安装 Keras
conda install keras

3.安装结果验证

Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 11:07:29) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import keras
Using TensorFlow backend.
>>> import tensorflow

完成。

猜你喜欢

转载自blog.csdn.net/Kohang/article/details/83215948