python code to activate environment code example
Example 1: how to activate virtual environment in python
# for windows 10
py -m venv myvirtualenv
myvirtualenv\Scripts\activate #!!!! use "\" not "/" !!!!!
Example 2: how to activate venv python
python3 -m venv tutorial-env
Example 3: activate venv in python
tutorial-env\Scripts\activate.bat
Example 4: activate environment python
$ which python
/usr/bin/python