gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 18:59:12 25 4
gpt4 key购买 nike

所以我试图安装 pychecker 来检查我 friend 想让我检查的一个大 python 文件,但是在尝试使用 sudo apt-get install pychecker 安装 pychecker 时和 sudo apt-get install -y pychecker它返回 E: Unable to locate package pychecker

最佳答案

pychecker不再作为包包含在 Ubuntu 和 Debian 中,因为它没有维护:最新版本是 2011 年的,该版本不适用于当前版本的 Python。来自 here :

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

...

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

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


其他选择包括 flake8 .

关于python - 我无法在我的 ubuntu 21.04 上安装 pychecker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68952749/

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