esbonio vscode setup

Problem

Could not import extension xxx (exception: No module named 'xxx')
no theme named 'xxx' found (missing theme.toml?)

Solution

Although python path is selected automatically according to VSCode’s Python extension, python command still need to be set

The following workspace VSCode setting should solve the issue

{
    "esbonio.sphinx.pythonCommand": {"command": ["${venv:venv}"]}
}

where venv is the name of the virtual environment existing in this workspace

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理