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

}

]

}

相关推荐
爱就是恒久忍耐4 天前
VSCode里如何比较2个branch
ide·vscode·编辑器
意法半导体STM324 天前
【官方原创】如何为STM32CubeMX2配置Visual Studio Code配置方案
vscode·stm32·单片机·嵌入式硬件·策略模式·stm32cubemx·嵌入式开发
bloglin999994 天前
vscode中可视化的合并分支,在“合并编辑器中解析”中“与基线进行比较”是什么意思
ide·vscode·编辑器
天疆说4 天前
在 Ubuntu 的 VSCode 中配置 MATLAB
vscode·ubuntu·matlab
春日见5 天前
vscode的AI编程插件推荐:
大数据·ide·vscode·算法·机器学习·编辑器·ai编程
jieshenai5 天前
VScode sys.path,并使CTRL+左键可访问源码
ide·vscode·编辑器
qq_448011165 天前
VSCode环境搭建
ide·vscode·编辑器
qq_338432375 天前
VSCode Remote-SSH 远程 Windows Server 卡死的排查与解决
windows·vscode·ssh
console.log('npc')5 天前
Codex 桌面端接入 Headroom 压缩代理完整教程
前端·vscode
女神下凡6 天前
这是 Cursor(Composer) 的五种核心交互模式
服务器·人工智能·windows·vscode·microsoft