用Pycharm安装皮革
我试图在Pycharm中使用Pylint插件安装pylint。
我在VENV中创建了一个空白项目。
我正在使用:
pylint 2.14.0
astroid 2.11.5
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)]
PyCharm 2022.1.2
我尝试:
- 在插件设置中明确指定EXE的路径(c:\ git \ pythonproject \ venv \ cripcts \ pylint.exe)
- (3.9.6)
- python版本
- 的
- 不同 插件
- 重新安装Pycharm
- 重新启动PC
我会收到以下错误,当我尝试在控制台中运行-HELP
> (venv) PS C:\git\pythonProject1> pylint -help
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
有人知道吗?先感谢您
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
需要使用
,然后生成一个pylintrc文件,例如:
将其移动到项目文件夹中
,然后找到到佩特的路径:
然后转到首选项 - > Pycharm中的孔,并将孔的可执行文件设置为那条路,然后单击“测试”
注意,我发现Sonarlint插件更容易使用。我没有看到一种从皮棉错误到设置以关闭链接的方法,但我看到了Sonarlint
need to use
then generate a pylintrc file like:
and move it into your projects folder
then find the path to pylint for example:
then go to preferences -> pylint in PyCharm and set the pylint executable to be that path and click test
Note i have found the SonarLint plugin easier to work with. I wasn't seeing a way to navigate from the lint error to the setting to turn off the link but i saw that with SonarLint