Ubuntu16.04下keras安装

Posted followmejoy-lm

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu16.04下keras安装相关的知识,希望对你有一定的参考价值。

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安装的主要内容,如果未能解决你的问题,请参考以下文章

安装后无法导入keras

Ubuntu 安装 tensorflow-gpu + keras

基于ubuntu16.04配置opencv3.1+python3.5

ubuntu16.0 anaconda3 安装tensorflow keras错误集锦

ubuntu系统---ubuntu16.04 + virtualenv + py2.7 + tf15.0 + keras2.2.4 + opencv2.4.9 +Numpy1.14

Ubuntu 16.04 下安装 PyCharm