Commands_python


Venv (Virtual Environment)

Create a virtual environment for Python project

python -m venv env

Choose a Python version for your project

python3.8 -m venv env

Activate the Virtual Environment

source env/bin/activate

Deactivate the Virtual Environment

deactivate