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

        }

    ]

}

相关推荐

  1. vscode导入其他文件夹No Module

    2024-02-20 11:26:01       56 阅读
  2. vscode导入自定义模块ModuleNotFoundError解决方案

    2024-02-20 11:26:01       28 阅读
  3. psql导入数据排查

    2024-02-20 11:26:01       31 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-20 11:26:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-20 11:26:01       100 阅读
  3. 在Django里面运行非项目文件

    2024-02-20 11:26:01       82 阅读
  4. Python语言-面向对象

    2024-02-20 11:26:01       91 阅读

热门阅读

  1. 服务器4c16g中的c指什么?或者4h什么意思?

    2024-02-20 11:26:01       90 阅读
  2. 【LUA】时间面板显示

    2024-02-20 11:26:01       45 阅读
  3. open ssl 生成自签名证书

    2024-02-20 11:26:01       58 阅读
  4. c#程序应用程序设置文件Settings.settings详解

    2024-02-20 11:26:01       50 阅读
  5. CentOS 上更新 Git

    2024-02-20 11:26:01       47 阅读
  6. Android S - 添加按键,上报键值为0

    2024-02-20 11:26:01       46 阅读
  7. visual studio code(vs code)历史版本下载

    2024-02-20 11:26:01       55 阅读