How to create virtual env in Python project?

How to create virtual env in Python project?

Table of contents

No heading

No headings in the article.

What is a Virtual Environment in a project? A virtual environment in a python project is a location or a folder in the project root directory, in which all the required packages or dependencies are maintained. It isolates dependencies from local machine dependencies so that we can keep what versions of the package exactly a project required.

Assume the local machine has Python 3.6 version installed but if the project required Python 3.10 version we can configure it using a virtual environment. We can have different versions of the same dependency for different projects.

Creating Virtual Environment:

Check out my youtube video to learn about creating a virtual environment in a python project. Thank you!