Python ImportError: cannot import name ‘config’ from ‘decouple’

This error occurs due to wrong python module. You have installed decouple instead of python-decouple.

Solution

  • Remove decouple
pip uninstall decouple
  • install python-decouple
pip install python-decouple

Leave a Reply

(*) Required, Your email will not be published