"pyflakes" failed during execution due to "'FlakesChecker' object has no at
作者:互联网
2020-01-21 运行$ flake8 /path/to/file 报了如下错误:
"pyflakes" failed during execution due to "'FlakesChecker' object has no attribute 'NAMEDEXPR'"
Run flake8 with greater verbosity to see more details
原因是flake8依赖pyflake,而pyflake虽然修复了这个问题,但并未release到pypi
--------------------------------------------------------------------------------------------------------------
解决:
pip install git+https://github.com/PyCQA/pyflakes.git --user --upgrade
如果github太慢可以换成gitee:
pip install git+https://gitee.com/waketzheng/pyflakes.git --user --upgrade
waketzheng 发布了74 篇原创文章 · 获赞 52 · 访问量 24万+ 私信 关注
标签:upgrade,git,pyflakes,attribute,NAMEDEXPR,FlakesChecker,flake8 来源: https://blog.csdn.net/jaket5219999/article/details/104063035