- For Windows
python -m venv --prompt <venv_promt> <venv_directory> - For Linux
python3 -m venv --prompt <venv_promt> <venv_directory>
- For Windows
<venv_directory>\Scripts\activate.bat - For Linux
source <venv_directory>/bin/activate
- For Windows
where python, should return new python path - For Linux
which python3should return new python path
- For Windows
python -m pip install -r requirements.txtorpip install <package name> - For Linux
python3 -m pip install -r requirements.txtorpip3 install <package name>
- For Windows
python -m pip freeze --local. - For Linux
python3 -m pip freeze --localorpython3 -m pip install <package name>
In Windows with command
python -m venv --prompt sfm .venvvenv Prompt =
sfmvenv Directory =
.venv