how to check current python environment code example
Example 1: create virtual environment code
python3 -m venv venv
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