运行flake8会产生AttributeError:“OptionManager”对象没有属性“config\u options”

2024-06-26 03:01:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用以下命令安装了flake8。在

pip3 install flake8

从终端执行flake8会产生以下错误。在

^{pr2}$

在2016年发现以下错误,但似乎已被修复。在

https://github.com/PyCQA/flake8-import-order/issues/79

不知道我有没有做错什么。任何帮助都将不胜感激。在

$ pip3 freeze | grep flake8
flake8==3.7.7
flake8-docstrings==1.3.0
flake8-polyfill==1.0.2

Tags: installhttpsimport命令githubcom终端flake8
1条回答
网友
1楼 · 发布于 2024-06-26 03:01:30

因此,根据phd对这个问题的评论,我做了以下事情。在

  1. 卸载flake8:pip3 uninstall flake8
  2. 清理目录:sudo rm -R /path/to/directory/flake8
  3. 重新安装flake8:pip3 install flake8

成功了:)

相关问题 更多 >