gpt4 book ai didi

python 2.7 : no module named configparser

转载 作者:太空狗 更新时间:2023-10-29 23:58:30 28 4
gpt4 key购买 nike

我尝试在 Flask 中运行 db_create.py,但出现以下错误:

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

即使在成功 pip install 之后,也会出现相同的错误代码。

我看到了针对 Python 3 的解决方案,但不是更低版本。

最佳答案

对于任何跟随者,这可能是由 six 模块的旧(损坏)版本引起的,例如见https://github.com/Parsely/streamparse/issues/113 , 例如

这导致 six.moves 几乎是空的(不包含 configparser 模块)

修复是升级使用的 6 版本。

关于 python 2.7 : no module named configparser,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31662194/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com