Python 2.7: no module named configparser

I try to run db_create.py in Flask and I get the following error:

 from six.moves.configparser import ConfigParser ImportError: No module named configparser 

Even after a successful pip install , the same error code appears.

I see solutions oriented to Python 3, but not lower.

+5
source share
1 answer

For those who follow them, this is most likely caused by the old (broken) version of the six module, for example. see https://github.com/Parsely/streamparse/issues/113 for example

due to which six.moves was almost empty (did not contain the configparser module)

The six version update has been fixed.

+5
source

All Articles