擅长:python、mysql、java
<p>我在macos上也遇到了同样的问题。我用下一个步骤解决了这个问题:</p>
<pre class="lang-sh prettyprint-override"><code>$ cd project_directory
$ pipenv install pylint
$ code .
</code></pre>
<p>所以,关键是在激活的虚拟环境下从命令行运行VS代码。不过,我不确定它对Windows是否有帮助。在</p>
<p>对于Windows,解决方法可能是在“工作区设置”中指定pylint的确切路径:</p>
^{pr2}$