码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu16.04下keras安装

时间:2018-09-12 15:08:52      阅读:755      评论:0      收藏:0      [点我收藏+]

标签:nvidia   www.   mac   dep   attribute   gitlab   str   ash   backend   

Installation

Before installing Keras, please install one of its backend engines: TensorFlow, Theano, or CNTK. We recommend the TensorFlow backend.

You may also consider installing the following optional dependencies:

  • cuDNN (recommended if you plan on running Keras on GPU). (已安装)
  • HDF5 and h5py (required if you plan on saving Keras models to disk). (sudo pip install h5py)
  • graphviz and pydot (used by visualization utilities to plot model graphs). (sudo apt install python-pydot python-pydot-ng graphviz )

Then, you can install Keras itself. There are two ways to install Keras:

  • Install Keras from PyPI (recommended):
sudo pip install keras

If you are using a virtualenv, you may want to avoid using sudo: (在创建的tensorflow虚拟环境下安装)

pip install keras

Ubuntu16.04下keras安装

标签:nvidia   www.   mac   dep   attribute   gitlab   str   ash   backend   

原文地址:https://www.cnblogs.com/followmejoy-LM/p/9634679.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!