Skip to content

VSCode运行Python程序提示:ModuleNotFoundError,VSCode未找到导入的自定义的模块,只能手动向sys.path中把项目路径添加,但十分麻烦;Pycharm运行时会自动把项目经路添加至sys.path,开发者无需这般麻烦操作 #19499

@PiFrancis

Description

@PiFrancis

Issue Type: Bug

VSCode运行Python程序提示:ModuleNotFoundError

VS Code version: Code 1.69.2 (3b889b090b5ad5793f524b5d1d39fda662b96a2a, 2022-07-18T16:12:52.460Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-debuggingbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterneeds PRReady to be worked on

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions