为何用vscode 做 python 开发 第三方库 不提示??
2020-02-25 本文已影响0人
bianruifeng
看vscode 的settings.json 文件里一定有这个配置
"python.jediEnabled": false,
其实你只需要把它改成true,保存重启vscode即可。
vscode会有如下提示
![](https://img.haomeiwen.com/i1713723/a2753ecb475970c0.png)
如果还是没有提示第三方库的关键字
在做如下配置:
"python.jediEnabled": true,
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.pythonPath": "/usr/local/bin/python3",
"python.autoComplete.addBrackets": true,
"python.autoComplete.extraPaths": [
"/usr/local/lib/python3.7/site-packages",
"/Library/Python/2.7/site-packages",
]
保存重启
python.autoComplete.extraPaths 地址查看这个篇文章寻找https://www.jianshu.com/p/458c85e7db42