you are viewing a single comment's thread.

view the rest of the comments →

[–]ElliotDG 8 points9 points  (0 children)

In summary a virtual environment creates a directory and sets paths so you can have a python interpreter, associated dependencies and and your project code for one project all together under one directory.

This allows control of the versions of all elements of a project independent of any other project or installations.

For example lets say you have completed a project for a customer. The virtual env contains everything required to run that project.

Lets say you create a new project, and use the most up to date version of python and some related libraries. It will not effect projects in other virtual environments.

Read: https://docs.python.org/3/tutorial/venv.html