Import "decouple" could not be resolved in Python

152 views Asked by At

So I'm trying to import config from the ".env" file via python-decouple but when I try do the import:

from decouple import config

it returns the error of:

Import "decouple" could not be resolved
1

There are 1 answers

1
marwan On

Is your python module named decouple.py by any chance? wondering if it is a naming conflict if you are sure you have installed decouple successfully