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?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.