D
D
Daniil Shevkunov2022-02-04 17:11:28
Python
Daniil Shevkunov, 2022-02-04 17:11:28

Why is VSCode Pylance not seeing modules?

61fd33e262703205847314.png
Why does Pylance not see the modules that are in the folder next to it (the code works fine)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wearant, 2022-02-04
@danila763

Because functions.py has a different name, judging by the open tab, it is functions.pyW.
Remove the letter W from the file extension

M
Michael, 2022-02-04
@moonz

This happens because Pylance relies on packages installed in the virtual environment, and you probably installed your package using local pip and not inside venv

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question