HBNetwork / python-decouple

Strict separation of config from code.
MIT License
2.79k stars 192 forks source link

Config Import Error #88

Closed Merikanto closed 4 years ago

Merikanto commented 4 years ago

Hello, when I try to use decouple in a project, I got the following error:

 from decouple import config

Error:

ImportError: cannot import name 'config' from 'decouple' (~/.local/lib/python3.7/site-packages/decouple/__init__.py)

I'm not sure what went wrong. Thanks!

lucasrcezimbra commented 4 years ago

How did you install it? I suspect you have installed decouple instead of python-decouple.

To install this lib run:

pip install python-decouple
Merikanto commented 4 years ago

Yes that's exactly what I did.... I tried pip3 install python-decouple at first, then tried with pip again, and the issue remained there.

Merikanto commented 4 years ago

Okay I think I know why this happened, thank you anyways!