vscode导入其他文件夹下报错No Module

在项目中创建haunch.json如下

{

// Use IntelliSense to learn about possible attributes.

// Hover to view descriptions of existing attributes.

// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

"version": "0.2.0",

"configurations": [

{

"name": "Python: Current File",

"type": "debugpy",

"request": "launch",

"program": "${file}",

"cwd": "${fileDirname}",

"env": {"PYTHONPATH":"${workspaceRoot}"},

"envFile": "${workspaceRoot}/.env",

}

]

}

相关推荐
ntGrace20 小时前
Windows环境下,在Vscode里利用ESP-IDF开发ESP32S3项目时,不能构建的问题1及解决方法
vscode·编辑器
AIBox36520 小时前
vscode api 配置怎么做:第三方大模型接入 VS Code 的完整方法
ide·人工智能·vscode·gpt·语言模型·编辑器
sz49723859921 小时前
WSL2+VSCode搭建ESP-IDF 开发环境
ide·vscode·编辑器·esp32·wsl
学Linux的语莫21 小时前
vscode连接linux服务器,linux环境编程开发。
linux·vscode·ubuntu·编辑器
SunkingYang21 小时前
怎么将VSCode添加到右键菜单
windows·vscode·注册表·删除·添加·右键菜单
明月夜&1 天前
Ubuntu 20.04 Docker 部署 Ollama + DeepSeek-Coder:本地 AI 编程助手实战
git·vscode·ubuntu·docker·大语言模型·智能体
码匠许师傅1 天前
【STM32开发笔记】基于STM32CubeMX2 和STM32CubeIDE for VSCode的全新STM32C5开发体验
笔记·vscode·stm32
Stone_OverLooking1 天前
vscode 配置Qt qmake项目
ide·vscode·qt
ฅ ฅBonnie1 天前
使用 VSCODE 连接远程服务器上的容器
服务器·ide·vscode
守护安静星空1 天前
esp32开发笔记-wifi网络
网络·笔记·vscode·单片机·tcp/ip