用Pycharm安装皮革

发布于 2025-02-03 23:11:32 字数 736 浏览 2 评论 0 原文

我试图在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

有人知道吗?先感谢您

I tried to install pylint with the pylint plugin in PyCharm.

I created a blank project in a venv.

I am using:

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

I tried:

  • specifying the path of the exe explicitly in the plugin-setting (C:\git\pythonProject\venv\Scripts\pylint.exe)
  • different Python version (3.9.6)
  • different pylint version
  • new venv
  • reinstall pylint plugin
  • Re-installing PyCharm
  • Restart PC

I get the following Error, when i try to run -help in the console

> (venv) PS C:\git\pythonProject1> pylint -help

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

screenshot

Has anyone a clue? Thank you in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人心善变 2025-02-10 23:11:32

需要使用

pip install pylint

,然后生成一个pylintrc文件,例如:

pylint --generate-rcfile > ~/.pylintrc

将其移动到项目文件夹中

,然后找到到佩特的路径:

venv/bin/pylint

然后转到首选项 - > Pycharm中的孔,并将孔的可执行文件设置为那条路,然后单击“测试”

注意,我发现Sonarlint插件更容易使用。我没有看到一种从皮棉错误到设置以关闭链接的方法,但我看到了Sonarlint

need to use

pip install pylint

then generate a pylintrc file like:

pylint --generate-rcfile > ~/.pylintrc

and move it into your projects folder

then find the path to pylint for example:

venv/bin/pylint

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文