9951 explained code solutions for 126 technologies


python-kerasHow do I install Keras with Python?


Keras is a high-level neural networks API, written in Python and capable of running on top of TensorFlow, CNTK, or Theano. It was developed with a focus on enabling fast experimentation.

To install Keras with Python, you will need to have Python installed, as well as the Python development environment set up on your system.

  1. Install the latest version of Python.
  2. Install the Python development environment.
  3. Install TensorFlow, CNTK, or Theano.
  4. Install the Keras library.

Example code

pip install keras

Output example

Collecting keras
  Downloading Keras-2.4.3-py2.py3-none-any.whl (36 kB)
Requirement already satisfied: six in c:\users\user\anaconda3\lib\site-packages (from keras) (1.14.0)
Requirement already satisfied: h5py in c:\users\user\anaconda3\lib\site-packages (from keras) (2.10.0)
Requirement already satisfied: scipy>=0.14 in c:\users\user\anaconda3\lib\site-packages (from keras) (1.4.1)
Requirement already satisfied: numpy>=1.9.1 in c:\users\user\anaconda3\lib\site-packages (from keras) (1.18.1)
Requirement already satisfied: pyyaml in c:\users\user\anaconda3\lib\site-packages (from keras) (5.3.1)
Installing collected packages: keras
Successfully installed keras-2.4.3

Helpful links

Edit this code on GitHub