venv
is a built-in module in Python 3 that allows you to create and manage virtual environments. A virtual environment is a self-contained directory that contains its own Python installation and packages, isolated from the system-wide Python environment. This makes it easier to manage dependencies and ensure that your project runs on the specific version of Python and package versions that you need.
To create a virtual environment using venv, follow these steps:
- Open a terminal or command prompt.
- Navigate to the directory where you want to create the virtual environment.