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

}

]

}

相关推荐
拼图2098 天前
VSCode 正则表达式使用指南
ide·vscode·正则表达式
小李不困还能学9 天前
VSCode_RemoteSSH_一直卡在下载服务器_解决教程
服务器·ide·vscode
lzj_pxxw12 天前
STM32移植FreeRTOS(Cmake+CubeMX)
vscode·stm32·嵌入式硬件
modelmd12 天前
离线安装与使用 vscode Remote SSH插件
ide·vscode·ssh
2501_9160088918 天前
iOS App 图标、启动屏和多语言搭配 方法,上架前使用KXBuild一次做好 App 图标
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
2501_9159184118 天前
iOS 推送通知怎么实现,从 APNs p8 密钥到 iOS 真机收到第一条推送
vscode·ios·objective-c·个人开发·swift·敏捷流程
sunshine22 girl19 天前
copilot vscode 使用技巧
人工智能·vscode·编辑器
2501_9159090619 天前
Windows 打开 Xcode 工程,编译调试 Xcode 项目并和 Mac 同事协作
ide·windows·vscode·macos·ios·个人开发·xcode
2501_9160074720 天前
Windows OpenSSL 生成 iOS 证书,制作 p12 与描述文件,KXBuild 签名实操
windows·vscode·ios·objective-c·个人开发·swift·敏捷流程
我要见SA姐120 天前
Chrome 内存泄漏诊断指南:从现象定位到根因排查
ide·vscode·python·自动化·编辑器