venv usage on windows, activate and deactivate

venv usage on windows, activate and deactivate

go on to your project root directory

first create a virtual environment with syntax

python3 -m venv <env-name>

python3 -m venv niceproject

a folder called niceproject will be automatically

cd into <projectname>

cd niceproject

then in the Scripts folder

cd Scripts

then just type

activate

it will activate as there is an activate.bat in the Scripts folder

pip install what you wish

then type

deactivate

to disactivate the virtualenv

 

  •  
  •  
  •  
  •  
  •  
  •  

Leave a Reply

Your email address will not be published. Required fields are marked *