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

}

]

}

相关推荐
Molesidy16 小时前
【Git】分别给出添加到Keil工程和IAR工程中的gitnore文件以便不跟踪编译文件的git记录
git·vscode·插件
www.0218 小时前
Codex额度用完怎么办?Windows定时自动继续VS Code Codex任务实战
人工智能·windows·vscode·自动化·openai·codex·autohotkey
golang学习记19 小时前
Zed 新特性:这次继续抄VSCode
vscode·编辑器·zed
皓月盈江1 天前
Linux系统使用VSCode搭建GO开发环境
linux·vscode·ubuntu·golang·debian
宁静致远20212 天前
VSCode 开发 STM32 的 Keil工程 (Keil Assistant)
vscode·stm32·stm32cubeide
晴天162 天前
VSCodium 项目介绍
前端·javascript·vscode
进击的炸酱面3 天前
如何在服务器中使用codex?代理配置一图详解
ide·vscode·ssh
持敬chijing3 天前
VSCode 远程开发环境完整搭建指南:汉化、SSH 免密连接与版本更新锁定
ide·vscode·ssh
郝学胜-神的一滴4 天前
C++11 工程级应用 09:告别无谓拷贝,解锁高性能移动语义
开发语言·数据结构·c++·vscode·软件工程·visual studio
weixin_402486344 天前
VS Code Codex/Claude Extension 无法安装 / 无法正常打开
linux·服务器·vscode