How can I install the pylint for python2.7?

我怕爱的太早我们不能终老 提交于 2020-01-13 04:30:11

问题


I try to install the pylint for the python2.7 which in ubuntu 18.04, but it raises an error with this words:

pip install pylint                                  
Collecting pylint
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/04/1f/1d3929051b45c3e4015178c5fe5bbee735fb4e362e0fc4f0fbf3f68647ad/pylint-2.1.1.tar.gz
pylint requires Python '>=3.4.*' but the running Python is 2.7.15

I have been used the pip3 installed the pylint successfully for python3.6.

So, how can I install the pylint for python2.7?


回答1:


pylint still maintains support for Python 2 until maybe next year or so. But you need to install 1.9.X instead of 2.X. It seems though that you already had pylint installed, once you uninstall it you should be able to get 1.9 instead.



来源:https://stackoverflow.com/questions/51746255/how-can-i-install-the-pylint-for-python2-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!