pylint doesn't point to virtualenv python

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

    When you're using Pipenv / virtualenv, install pylint inside the virtualenv:

    pipenv install --dev pylint
    

    or, if you don't use Pipenv, install it with pip after you activated your virtualenv:

    # activate virtualenv, e.g. `. env/bin/activate`
    pip install pylint
    

提交回复
热议问题