我无法在我的ubuntu 21.04上安装pychecker

2024-04-18 23:48:15 发布

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

因此,我尝试安装pychecker来检查我朋友希望我检查的一个大python文件,但在尝试使用sudo apt-get install pycheckersudo apt-get install -y pychecker安装pychecker时,它返回E: Unable to locate package pychecker


1条回答
网友
1楼 · 发布于 2024-04-18 23:48:15

pychecker不再作为包包含在Ubuntu和Debian中,因为它是未维护的:最新版本从2011年开始,该版本将无法与当前版本的Python一起使用。从here

Please consider moving away from Pychecker in favor of an alternative like Pylint [1]. Pychecker is basically unmaintained upstream. Also, it is only supported for Python 2, so it will reach its end of life along with Python 2 sometime in 2020.

...

Now is the time to convert. Pylint does everything that Pychecker used to do. The main effort required is to create your new configuration file and weed out warnings that you want to ignore.

[1] https://www.pylint.org/

其他备选方案包括flake8

相关问题 更多 >