Installing and importing packages
Now that we are inside the covid
directory and our virtual environment has been created, it’s time to install all the packages we are going to use in our web application.
We need five different libraries:
Streamlit
, our wonderful framework for web applicationsnumpy
, a library for advanced numeric calculationstensorflow
, the package needed to manage neural networksPillow
, a library for image managementopencv-python
, the computer vision package
Let’s install everything by typing the following instructions one by one:
pipenv install streamlit numpy tensorflow Pillow opencv-python
This installation can take a little while. When it finishes, we should have something like this on our screen:
Figure 8.2: Package installation
We can now launch our editor, Sublime Text. You’ll see that in the covid
directory, there are now the two famous files, Pipfile
and Pipfile...