1. 程式人生 > >Keras 安裝

Keras 安裝

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

完成。