pylint doesn't point to virtualenv python

后端 未结 10 1803
执笔经年
执笔经年 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:53

    I know it's been a while since this question was answered, but I just thought I should leave this post here in case someone else runs into the same problem.

    If for some reason you need to keep pylint in the global space instead of your virtual environment, you can use the recommendation in here: PyLint + VirtualEnv.

    It basically says to configure your pylint using the init-hook and encoding version of a Python program that will use the global pylint and load the rest of the environment.

提交回复
热议问题