install keras and tensorflow code example
Example 1: how to pip install tensorflow
py -m pip install tensorflow
Example 2: install keras
sudo pip3 install keras
Example 3: install tensorflow
sudo pip3 install tensorflow
Example 4: install keras
git clone https://github.com/keras-team/keras.git
cd /keras
sudo python3 setup.py install
Example 5: Before installing tensorflow and Keras, install some of the libraries that are needed.
sudo apt-get install python3-numpy
sudo apt-get install libblas-dev
sudo apt-get install liblapack-dev
sudo apt-get install python3-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install gfortran
sudo apt-get install python3-setuptools
sudo apt-get install python3-scipy
sudo apt-get update
sudo apt-get install python3-h5py