pylint doesn't point to virtualenv python

后端 未结 10 1740
执笔经年
执笔经年 2021-01-07 19:19

I am pretty new to python and currenty I am trying to use pylint for checking code quality. I am getting a problem. My pylint doesn\'t point to virtualenv python interpreter

10条回答
  •  花落未央
    2021-01-07 19:41

    The issue has been solved on chat (link in comments).

    The problem lied in using sudo yum install pylint, because it installed pylint in the global env. The solution was to use the following command:

    pip install -i http://f.pypi.python.org/simple pylint

    Note the -i usage as the regular index seemed to be broken for the asker.

提交回复
热议问题