在每次保存py文件时提示:
Linter pylint is not installed
然后我点击右侧的 Install pylint
在终端上出现
C:\Users\Python>python -m pip install pylint
Requirement already satisfied: pylint in c:\python27\lib\site-packages
Requirement already satisfied: astroid<1.5.0,>=1.4.5 in c:\python27\lib\site-packages (from pylint)
Requirement already satisfied: mccabe in c:\python27\lib\site-packages (from pylint)
Requirement already satisfied: configparser; python_version == "2.7" in c:\python27\lib\site-packages (from pylint)
Requirement already satisfied: backports.functools-lru-cache; python_version == "2.7" in c:\python27\lib\site-packages (from pylint)
Requirement already satisfied: six in c:\python27\lib\site-packages (from pylint)
Requirement already satisfied: colorama; sys_platform == "win32" in c:\python27\lib\site-packages (from pylint)
Requirement already satisfied: isort>=4.2.5 in c:\python27\lib\site-packages (from pylint)
Requirement already satisfied: wrapt in c:\python27\lib\site-packages (from astroid<1.5.0,>=1.4.5->pylint)
Requirement already satisfied: lazy-object-proxy in c:\python27\lib\site-packages (from astroid<1.5.0,>=1.4.5->pylint)
我感觉每一行都说自己 satisfied ,那你干啥报错嘞。。 1
wwqgtxx 2017-01-23 21:26:08 +08:00 via iPhone
pycharm 大法好😂
其实这个是一个类型检查的包 |
2
popu111 2017-01-23 21:37:47 +08:00
"python.linting.enabled": false
好,问题解决了 |
3
Newyorkcity OP |
4
popu111 2017-01-23 21:50:22 +08:00 1
@Newyorkcity 在配置文件,如果这还需要我教的话。。。 Ctrl-p ,> settings ,找到用户区设置
|
5
Newyorkcity OP @popu111
大佬。。。现在该怎么办。。 |
6
Newyorkcity OP |
7
popu111 2017-01-23 22:13:05 +08:00
@Newyorkcity 。。。最后多了个逗号
|