【人工智障】00:Keras 安装

1. 系统

· 放弃Windows
所以使用Linux, 这里使用Cent OS。

2.安装

选择Anaconda—— 全面
使用虚拟环境也可以。

2.1 安装 Anaconda

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

# 如果想用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

#  pip 安装
pip install tensorflow
2.3安装 Keras
conda install keras
# Pip 安装
pip 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

完成。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章