check virtual environment python in mac code example Example: activate venv in mac source venv/bin/activate