Installing a library into a virtual environment in Python

Before installing the library into our virtual environment, let's check what packages we have installed:

terminalpip list

After executing the command, a very small list of packages from our project will be displayed in the console:

terminalPackage    Version
---------- -------
pip        24.0
setuptools 63.2.0

Now let's install the numpy library into our project:

terminalpip install numpy

After successful installation of the library, the following message will be displayed:

terminalSuccessfully installed numpy-1.26.4

After installing numpy, our project needs to be launched only through activation of the virtual environment, because the library will be only in this environment. If you turn off the virtual environment and just launch the project in the terminal, then we will not have the numpy library, because it is only in the virtual environment.

Задание 1

Install the tabulate library into your virtual environment.

Задание 2

Install the jsonobject library into your virtual environment.