how to get virtual env workon function on windows 10 code example Example: activate virtual environment python windows 10 cd C: Path to virtual environment> .\activate