python - 使用 Django 时 VS Code 中的 pylance(reportMissingModuleSource) 错误
问题描述
https://github.com/microsoft/pyright/blob/master/docs/configuration.md" 错误指向此 GitHub 自述文件,没有说明,也没有针对此错误给出解决方案 显示的错误消息
我再次重新安装 python 和 Django 仍然无法正常工作。我应该怎么办?
解决方案
This could be because you are not using the correct python interpreter for your venv.
To select the interpreter: "View" > "Command Palette" or (Ctrl+Shift+P) and search and select "Python: Select Interpreter".
Then enter the path to the correct Python interpreter in your venv. Example:
./.venv/bin/python3
推荐阅读
- windows-subsystem-for-linux - 在 wsl2 和 onedrive 上创建虚拟环境的问题
- java - Wildfly stops abruptly
- html - TypeError:hash must be unicode or bytes,not int
- python - is there a way to use eel functions in attribute?
- java - 调试错误:java.lang.ClassCastException:java.lang.Long 无法转换为 java.util.List
- c - 我们如何使用 glade 和 C 创建一个简单的 GUI 应用程序?
- python - 为什么我不能从同级文件夹导入?
- tfs - 为什么 TFS Build Get Sources 返回错误 255?
- automation - 如果我使用 Cypress 和 appium,我需要 2 个自动化框架而不是 1 个带有 webdriver/appium 的框架。1 个框架更可取吗?
- javascript - 使用模板标签时密码字段中缺少眼睛图标