Now, let's install the Python libraries used for DL, specifically, TensorFlow and Keras.
What is TensorFlow?
TensorFlow is a Python library developed and maintained by Google. You can implement many powerful machine learning and DL architectures in custom models and applications using TensorFlow. To find out more, visit
https://www.tensorflow.org/.
Install the TensorFlow DL library (for all OS except Windows) by typing the following command:
conda install -c conda-forge tensorflow
Alternatively, you may choose to install using pip and a specific version of TensorFlow for your platform, using the following command:
pip install tensorflow==1.6
You can find the installation instructions for TensorFlow at https://www.tensorflow.org/get_started/os_setup#anaconda_installation.
Now we will install keras using the following command:
pip install keras
To validate the environment and the version of the packages, let's write the following script, which will print the version numbers of each library:
# Import the tensorflow library
import tensorflow
# Import the keras library
import keras
print('tensorflow: %s' % tensorflow.__version__)
print('keras: %s' % keras.__version__)
Save the script as dl_versions.py. Run the script by typing the following command:
python dl_version.py
You should see the following output:
tensorflow: 1.6.0
Using TensorFlow backend.
keras: 2.1.5
Voila! Now our Python development environment is ready for us to write some awesome DL applications in our local.