A virtual environment is useful in case you want to try particular libraries and extensions of a particular programming language (eg Python), without having to worry about creating conflicts with previous (or later) versions already installed on your machine.
For example: the XY library only works with version 3.0 of the Z tool, but you have version 4.0 installed on your PC. To avoid creating conflicts by uninstalling the current version, creating a virtual environment is the ideal solution!
These steps can be performed comfortably via command prompts. Let's get started!
- First of all you need to install the package that allows the creation of a virtual environment. This is possible by running the following code: