Home > Enterprise >  can't import local file from same folder - Reportmissingimport
can't import local file from same folder - Reportmissingimport

Time:09-19

i'm working on visual studio code and can't import files from the project's folder enter image description here

enter image description here

Also about the configuration of "python.analysis.extraPaths". The scripts are all in the same folder, and "python.analysis.extraPaths" does not need to be configured at this time.

enter image description here

If subfolders exist, the configuration is as follows:

    "python.analysis.extraPaths": [
        "./pyfile"
    ]

It is the path, not the file name

enter image description here

is the path, not the file name

  • Related