没有运气 pip 安装 Python 3 的 pylint [英] No luck pip-installing pylint for Python 3

查看:55
本文介绍了没有运气 pip 安装 Python 3 的 pylint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣在我的 Python 3 代码上运行检查器以指出可能的缺陷.PyChecker 不适用于 Python 3.我尝试通过 pip 安装 Pylint,但这失败了.错误消息对我没有帮助(见粘贴).

I'm interested in running a checker over my Python 3 code to point out possible flaws. PyChecker does not work with Python 3. I tried to pip-install Pylint, but this fails. The error message does not help me (see paste).

Pylint 的自述文件 指出:

Pylint 应该与任何 >= 2.2 的 python 兼容.

Pylint should be compatible with any python >= 2.2.

然而,页面不知何故感觉过时了.

However, the page somehow feels outdated.

pylint 与 Python 3 兼容吗?如果是,我该如何安装它?如果没有,我是否应该考虑其他替代方案?

Is pylint compatible with Python 3? If yes, how can I install it? If no, are there alternatives I should look into?

推荐答案

是的,pylint 版本 > 0.23.0 确实支持 Py3K.

Yes, pylint versions > 0.23.0 do support Py3K.

您的问题似乎在 http://www.logilab.org/82417(还有 开始使用 Pylint for Jython (jython2.5.1))

Your issue seems to be described in http://www.logilab.org/82417 (also Getting started with Pylint for Jython (jython2.5.1))

缓存的工单页面推荐运行:

The cached ticket page recommends running:

$ NO_SETUPTOOLS=1 python3.2 setup.py install --no-compile
$ easy_install-3.2 logilab-common
$ easy_install-3.2 logilab-astng
# You can probably use pip instead of easy_install...

这篇关于没有运气 pip 安装 Python 3 的 pylint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆