how to check if virtual environment is activated code example
Example 1: activate virtual environment on windows
venv\Scripts\activate.bat
Example 2: how to know if i'm in a virtual environment
import sys
sys.prefix == sys.base_prefix
# if true, you are not in a virtual env