Pylint:未安装 Linter pylint。安装为扩展后 - VScode
Pylint: Linter pylint is not installed. after installing as extension - VScode
我刚刚安装了 python 3.8.3 并创建了一个文件。
出现一条消息;
Linter pylint is not installed. Source: Python (Extension)
我点击了安装按钮,但现在收到此错误消息...
$ C:/Python38/python.exe c:\Users\JAEMIN\.vscode\extensions\ms-python.python-2020.6.90262\pythonFiles\pyvsc-run-isolated.py pip install -U py
lint --user
C:\Python38\python.exe: can't open file 'c:UsersJAEMIN.vscodeextensionsms-python.python-2020.6.90262pythonFilespyvsc-run-isolated.py': [Errno
2] No such file or directory
我进行了搜索,但我的情况似乎没有任何效果。
什么是 Linter pylint?我需要它吗?
谢谢
让我直接拿pylint
的文档
pylint
Pylint is a python linter which checks the source code and also acts
as a bug and quality checker. It has more verification checks and
options than just PEP8(Python style guide).
This is the most commonly used tool for linting in python.
It includes the following features: Checking the length of each line
Checking if variable names are well-formed according to the project’s
coding standard Checking if declared interfaces are truly implemented.
Linter 是一个可选工具,用于检查源代码的文体错误。
正如另一个答案所述,pylint 是用于文体错误的代码检查工具。如果你想摆脱错误信息,我相信你只需要做 pip install pylint
.
首先,您应该检查文件'c:\Users\JAEMIN.vscode\extensions\ms-python.python-2020.6.90262\pythonFiles\pyvsc-run-isolated.py'是否存在。它由您安装的 'python' 扩展程序提供。您可以尝试重新安装此扩展程序。您最好删除 'ms-python.python-2020.6.90262' 文件夹以防万一,然后重新安装 'python' 扩展。
其次,当您尝试通过命令 'pip install pylint' 安装 'pylint' 时,您收到错误:'pip: command not found'。好像你还没有创建虚拟环境。如果您创建了它,并激活了环境 (Ctrl+Shift+`),您就可以使用 pip 工作。您可以参考this page for more information, and this is the recommended method. But you can still choose to use the default global python, but it seems like when you install the python3.8.3 you haven't chosen 'pip' on the first page. So, the system can't find 'pip' command. A few months ago, I remembered although you install python, you still need to install pip manually. You can refer to this页面了解如何安装pip。
我刚刚安装了 python 3.8.3 并创建了一个文件。 出现一条消息;
Linter pylint is not installed. Source: Python (Extension)
我点击了安装按钮,但现在收到此错误消息...
$ C:/Python38/python.exe c:\Users\JAEMIN\.vscode\extensions\ms-python.python-2020.6.90262\pythonFiles\pyvsc-run-isolated.py pip install -U py
lint --user
C:\Python38\python.exe: can't open file 'c:UsersJAEMIN.vscodeextensionsms-python.python-2020.6.90262pythonFilespyvsc-run-isolated.py': [Errno
2] No such file or directory
我进行了搜索,但我的情况似乎没有任何效果。
什么是 Linter pylint?我需要它吗?
谢谢
让我直接拿pylint
的文档pylint
Pylint is a python linter which checks the source code and also acts as a bug and quality checker. It has more verification checks and options than just PEP8(Python style guide).
This is the most commonly used tool for linting in python.
It includes the following features: Checking the length of each line Checking if variable names are well-formed according to the project’s coding standard Checking if declared interfaces are truly implemented.
Linter 是一个可选工具,用于检查源代码的文体错误。
正如另一个答案所述,pylint 是用于文体错误的代码检查工具。如果你想摆脱错误信息,我相信你只需要做 pip install pylint
.
首先,您应该检查文件'c:\Users\JAEMIN.vscode\extensions\ms-python.python-2020.6.90262\pythonFiles\pyvsc-run-isolated.py'是否存在。它由您安装的 'python' 扩展程序提供。您可以尝试重新安装此扩展程序。您最好删除 'ms-python.python-2020.6.90262' 文件夹以防万一,然后重新安装 'python' 扩展。
其次,当您尝试通过命令 'pip install pylint' 安装 'pylint' 时,您收到错误:'pip: command not found'。好像你还没有创建虚拟环境。如果您创建了它,并激活了环境 (Ctrl+Shift+`),您就可以使用 pip 工作。您可以参考this page for more information, and this is the recommended method. But you can still choose to use the default global python, but it seems like when you install the python3.8.3 you haven't chosen 'pip' on the first page. So, the system can't find 'pip' command. A few months ago, I remembered although you install python, you still need to install pip manually. You can refer to this页面了解如何安装pip。