Installing the packages

Let's quickly review how you can install the required packages:

$ pip install flask

To check if the installation has been performed correctly, just open a Python shell and try to import the Flask library:

python
import Flask

$ pip install tensorflow

To check if the installation has been performed correctly, just open a Python shell and try to import the TensorFlow library:

python
import tensorflow
$ pip install keras

To check if the installation has been performed correctly, just open a Python shell and try to import the Keras library:

python
import keras
$ pip install requests

To check if the installation has been performed correctly, just open a Python shell and try to import the requests library:

python
import requests
pip install Pillow

To check if the installation has been performed correctly, just open a Python shell and try to import the Pillow library:

python
import PIL

I would like to mention that the recommended approach is to install packages in virtual environments. See Chapter 1Setting Up OpenCV, to learn more about creating and managing virtual environments.