Search

Sunday, 24 September 2023

How to create a python virtual environment using venv

 Open Powershell:

Navigate to the directory where you want to create a python environment and then type:

python -m venv mynewenv

This command will create a folder named mynewenv in that directory.

Navigate inside this directory by

cd mynewenv

Now to activate the environment type in:

.\Scripts\activate