It seems python-dotenv is not installed with cli option. Run pip install "python-dotenv[cli]" to fix this.