"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

 

"pyflakes" failed during execution due to "'FlakesChecker' object has no at"pyflakes" failed during execution due to "'FlakesChecker' object has no at waketzheng 发布了74 篇原创文章 · 获赞 52 · 访问量 24万+ 私信 关注
上一篇:Chocolaty


下一篇:哪个tomcat版本适合Java 8