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",

}

]

}

相关推荐
*wait for?14 小时前
VScode使用uv-创建python虚拟环境
ide·vscode·编辑器
意法半导体STM3216 小时前
【官方原创】LAT1724 STM32CubeIDE for VSCode 修改链接文件中的起始地址无效?
vscode·stm32·单片机·嵌入式硬件·mcu·stm32cube
超级大福宝2 天前
VS Code Remote-SSH 因 RemoteForward 端口冲突导致连接失败的排查与解决
运维·服务器·windows·vscode·ssh
golang学习记3 天前
VSCode AI完成任务的仪式感:撒礼花
ide·vscode·编辑器
菜_小_白3 天前
codex
linux·vscode·ai
cuijiecheng20184 天前
Codex VS Code 插件新版卡住、界面异常:通过降级插件版本解决
vscode
golang学习记4 天前
VSCode AI新特性:HydraFusion来了:系统会自己组队干活
ide·人工智能·vscode
mklpo1475 天前
在win7 sp1 系统上安装最新版 的 Visual Studio Code。2026-10-04
ide·vscode·编辑器
承渊政道8 天前
Linux系统学习【线程概念与控制核心知识详解】
linux·运维·vscode·学习·ubuntu·线程创建 终止 等待
风华同学9 天前
vscode远程连接
ide·vscode·编辑器