Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Vscode Python Pylint code checks plug-in configuration

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Pylint is a Python code analysis tool that analyzes errors in Python code and looks for code that does not meet code style standards and has potential problems.

Pylint is a Python tool that provides more functions than normal code analysis tools, such as checking the length of a line of code, whether the variable name conforms to the naming standard, whether a declared interface is actually implemented, and so on.

Vscode is installed on unbuntu18 to try to write a test learning python. The installation of vscode is simple, and the relevant plug-in configuration of python can also be searched for installation directly. But every time it runs, it always prompts "Linter pylint is not installed", as follows:

But when I install it, it's always prompted that I can't install it.

I have confirmed that my python version, environment variables and pip settings are all correct, and always prompt

"ImportError: No module named setuptools (installation module error)"

Later, I found out the reason: this is a mistake often encountered by beginners. Don't worry, this is because Python in Windows does not install the setuptools module by default, which is also a third-party module.

Solve the problem as follows

Pip3 install setuptools

After this module is installed, you can continue to install Pylint

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report