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:
pip list
After executing the command, a very small list of packages from our project will be displayed in the console:
Package Version
---------- -------
pip 24.0
setuptools 63.2.0
Now let's install the numpy library into our project:
pip install numpy
After successful installation of the library, the following message will be displayed:
Successfully 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.
Install the tabulate library into your virtual environment.
Install the jsonobject library into your virtual environment.