美文网首页Python 学习
为何用vscode 做 python 开发 第三方库 不提示??

为何用vscode 做 python 开发 第三方库 不提示??

作者: bianruifeng | 来源:发表于2020-02-25 13:42 被阅读0次

看vscode 的settings.json 文件里一定有这个配置

"python.jediEnabled": false,

其实你只需要把它改成true,保存重启vscode即可。

vscode会有如下提示


截屏.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

相关文章

网友评论

    本文标题:为何用vscode 做 python 开发 第三方库 不提示??

    本文链接:https://www.haomeiwen.com/subject/zxttchtx.html