Vscode Python pylint (Code detection plugin)

Source: Internet
Author: User

Summer vacation just began to want to understand Python, use Vscode to write, according to Vscode tips installed some do not know what to do plug-ins, the writing process prompted that "Linter Pylint is not installed" Then the training learned that we only downloaded the auxiliary plugin in Vscode, but did not download the Python extension package.

You will also encounter the Importerror:no module named Setuptools (an issue with error installing the module)during the installation of Python.

Cause: This is a mistake that the novice often encounters. Don't worry, this is because Python does not have the Setuptools module installed by default in the Windows environment, which is also a third-party module.

Now Http://pypi.python.org/pypi/setuptools does not seem to provide exe download, instead of an automated download installation of the script https://bootstrap.pypa.io/ez_setup.py, download the script to run

Python ez_setup.py

Can. The script automatically determines the Python version, automatically downloads, installs.

After installing the Setuptools, we install PIP. We need to download it on the official website of Python: https://pypi.python.org/pypi/pip#downloads:

After the download is complete, unzip to a folder, use the CMD console to enter the Extract directory, enter:

Python setup.py Install

Here is the installation of the PIP, in order to improve the system can also set the environment variables < drive letter >\<Python34>\Scripts; (In the installation directory will find the script this file, inside will find setup.py this file)

After the PIP is installed, you can enter the command in the Command Line window of the Vscode E:\Python\python-m pip Install Pylint (this is entered under your Python installation directory) or click on the error message above it Stall for installation Pylint

After installation seems to need to go to the user settting inside Add the following settings:

{    // ...    " Python.linting.pylintPath " "< Installation location > /scripts/pylint.exe " ,     " Python.pythonpath " "< Installation location > /scripts/python.exe " ,     //  ...}

Vscode Python pylint (Code detection plugin)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.