I'm trying to run db_create.py in Flask, and am getting the following error:
from six.moves.configparser import ConfigParser
ImportError: No module named configparser
Even after a successfull pip install, the same error code comes up.
I'm seeing solutions targeting Python 3, but not lower.
解决方案
For anyone following along, this was likely caused by an old (broken) version of the six module, e.g. see https://github.com/Parsely/streamparse/issues/113, for instance
which caused six.moves to be almost empty (contained no configparser module)
The fix was to upgrade the version of six used.