how to activate venv
xxxxxxxxxx
source venv/bin/activate
deactivate
xxxxxxxxxx
# for windows 10
py -m venv myvirtualenv
myvirtualenv\Scripts\activate #!!!! use "\" not "/" !!!!!
xxxxxxxxxx
# to activate the virtual environment, type:
.\venv\Scripts\activate
# into the terminal.
# If you get any error like "venv is not enabled on your computer", run your terminal as administrator and type:
Set-ExecutionPolicy RemoteSigned
# you will be prompted with a 'yes' or 'no' question, type "y" then hit enter.
# then try to activate the virtual environment, it will work
xxxxxxxxxx
To create:
Python -m venv VENV_NAME
To activate:
VENV_NAME/Scripts/activate