zoukankan      html  css  js  c++  java
  • Python pylint requires Python '>=3.4.*' but the running Python is 2.7.12

    用pylint 1.9.x 安装

     pip install pylint==1.9.3.
    

    或者换源

    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pylint==1.9.3 
    

    应该是可以安装成功

    下面是stackoverflow上的问答
    How can I install the pylint for python2.7?

    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
    

    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

    And we can use this command to install the last pylint version of 1.9.x for python2.7.

    pip install pylint==1.9.3.
    
  • 相关阅读:
    HTTP报文详解
    常用的HTTP协议
    URL详解
    一起切磋
    emacs使用指南
    SSH自动部署
    linux上应用随机启动
    让Maven正确处理javac警告
    最近的学习
    Java application 性能分析分享
  • 原文地址:https://www.cnblogs.com/vercont/p/10210191.html
Copyright © 2011-2022 走看看