Skip to main content

Command Palette

Search for a command to run...

How to create virtual env in Python project?

Updated
1 min read
How to create virtual env in Python project?
B

Senior Test Lead || DevOps Aspirant || Python Beginner

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!

More from this blog

QA Automation Enthusiast

20 posts

I am a software testing engineer with 9+ years of experience. I am here to share my knowledge, learning and expertise with the software testing community.