[英]vscode python jedi client: couldn't create connection to server
I keep getting this message when I run Jupyter Notebook.我在运行 Jupyter Notebook 时不断收到此消息。
Pylance is now the default language server ( see here ). Pylance 现在是默认的语言服务器( 见这里)。 As such, I resolved the issue by changing my settings.json to:
因此,我通过将 settings.json 更改为:
"python.languageServer": "Pylance"
You may need to install the Pylance extension, if you don't already have it.如果您还没有 Pylance 扩展,您可能需要安装它。
检查您的setting.json中是否正确指定了以下代码:
"python.languageServer":"Jedi"
I met this issue on Ubuntu 18.04 LTS with python interpreter python3.6.9 + VS code python extension 2022.14我在 Ubuntu 18.04 LTS 上遇到了这个问题,python 解释器 python3.6.9 + VS 代码 python 扩展 2022.14
So the reason should be:所以原因应该是:
The new version python extension is not compatible with old python version 3.6.9.新版 python 扩展与旧版 python 3.6.9 版本不兼容。
Solution:解决方案:
either downgrade the python extension to 2022.06(can be even earlier, not fully tested);要么将 python 扩展降级到 2022.06(甚至可以更早,未经过全面测试); or upgrade the python interpreter version.
或升级 python 解释器版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.