VSCode提示pylint isnot installed

1.下载所需扩展

在https://www.lfd.uci.edu/~gohlke/pythonlibs/中下载所需扩展,我下载的是:pylint-2.1.1-py2.py3-none-any.whl。

2.在CMD中执行命令

在CMD中执行如下命令:pip3 install pylint-2.1.1-py2.py3-none-any.whl

C:\Users\Downloads>pip3 install pylint-2.1.1-py2.py3-none-any.whl
Processing c:\users\downloads\pylint-2.1.1-py2.py3-none-any.whl
Collecting astroid>=2.0.0 (from pylint==2.1.1)
  Downloading https://files.pythonhosted.org/packages/d5/ad/7221a62a2dbce5c3b8c57fd18e1052c7331adc19b3f27f1561aa6e620db2/astroid-2.2.5-py3-none-any.whl (193kB)
    100% |████████████████████████████████| 194kB 14kB/s
Requirement already satisfied: colorama; sys_platform == "win32" in d:\python35\lib\site-packages (from pylint==2.1.1) (0.4.1)
Collecting mccabe (from pylint==2.1.1)
  Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting isort>=4.2.5 (from pylint==2.1.1)
  Downloading https://files.pythonhosted.org/packages/21/9b/a01c74be7d28f30b83dd1db50f36faeaef717c5eaacc1bdab3887c806f03/isort-4.3.13-py2.py3-none-any.whl (41kB)
    100% |████████████████████████████████| 51kB 131kB/s
Collecting lazy-object-proxy (from astroid>=2.0.0->pylint==2.1.1)
  Downloading https://files.pythonhosted.org/packages/dd/35/269522f9e38030c204a54500d44d5e1bbcda00fa2946c648e4b423d0f30a/lazy_object_proxy-1.3.1-cp35-cp35m-win_amd64.whl
Requirement already satisfied: six in d:\python35\lib\site-packages (from astroid>=2.0.0->pylint==2.1.1) (1.11.0)
Collecting typed-ast>=1.3.0; implementation_name == "cpython" (from astroid>=2.0.0->pylint==2.1.1)
  Downloading https://files.pythonhosted.org/packages/0b/4a/197120f13698c589d1089bc3239677a3de21fb9af04ab21784b5a616c461/typed_ast-1.3.1-cp35-cp35m-win_amd64.whl (153kB)
    100% |████████████████████████████████| 163kB 248kB/s
Collecting wrapt (from astroid>=2.0.0->pylint==2.1.1)
  Downloading https://files.pythonhosted.org/packages/67/b2/0f71ca90b0ade7fad27e3d20327c996c6252a2ffe88f50a95bba7434eda9/wrapt-1.11.1.tar.gz
Installing collected packages: lazy-object-proxy, typed-ast, wrapt, astroid, mccabe, isort, pylint
  Running setup.py install for wrapt ... done
Successfully installed astroid-2.2.5 isort-4.3.13 lazy-object-proxy-1.3.1 mccabe-0.6.1 pylint-2.1.1 typed-ast-1.3.1 wrapt-1.11.1
You are using pip version 19.0.2, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

3.在CMD中执行命令

在CMD中执行如下命令:pip3 install pylint。

C:\Users\Downloads>pip3 install pylint
Requirement already satisfied: pylint in d:\python35\lib\site-packages (2.1.1)
Requirement already satisfied: colorama; sys_platform == "win32" in d:\python35\lib\site-packages (from pylint) (0.4.1)
Requirement already satisfied: mccabe in d:\python35\lib\site-packages (from pylint) (0.6.1)
Requirement already satisfied: astroid>=2.0.0 in d:\python35\lib\site-packages (from pylint) (2.2.5)
Requirement already satisfied: isort>=4.2.5 in d:\python35\lib\site-packages (from pylint) (4.3.13)
Requirement already satisfied: lazy-object-proxy in d:\python35\lib\site-packages (from astroid>=2.0.0->pylint) (1.3.1)
Requirement already satisfied: typed-ast>=1.3.0; implementation_name == "cpython" in d:\python35\lib\site-packages (from astroid>=2.0.0->pylint) (1.3.1)
Requirement already satisfied: wrapt in d:\python35\lib\site-packages (from astroid>=2.0.0->pylint) (1.11.1)
Requirement already satisfied: six in d:\python35\lib\site-packages (from astroid>=2.0.0->pylint) (1.11.0)
You are using pip version 19.0.2, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

 

posted @ 2019-03-09 09:01  博小园  阅读(4384)  评论(0编辑  收藏  举报
回到顶部