[Solved]-Python not importing dotenv module


Do you have dotenv installed (and not Python-dotenv)?

Python-dotenv and dotenv seem to cause conflicts when you have those both installed. Make sure you uninstall dotenv first, and uninstall python-dotenv too for good measure:

pip uninstall dotenv
pip uninstall python-dotenv
pip install python-dotenv

Leave a comment