Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python not importing dotenv module

I am setting up an imageboard that uses Django and when i try to load manage.py for the first time i am greeted with this error message

Traceback (most recent call last):

File "./manage.py", line 3, in <module>
    import dotenv

ImportError: No module named 'dotenv'

I have tried using python-dotenv rather than dotenv and it still doesn't work. Any solution for this?

like image 348
Ljayvee6 Avatar asked Oct 22 '17 05:10

Ljayvee6


1 Answers

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
like image 145
ECH Avatar answered Oct 01 '22 11:10

ECH