-
Hello Guys. I created a custom package and I did the needful of making a venv, enabling it, installing the package with just a pip install and yet pylance errors out that it cant find it. Its only when I create a .vscode/settings.json with
That pylance knows that its a legitamate package. The venv is activated in the terminal and set as the interpreter for vscode. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
How did you install it? Editable installs that use dynamic code generally don't work. See this documentation: https://microsoft.github.io/pyright/#/import-resolution?id=editable-installs |
Beta Was this translation helpful? Give feedback.
Then that works for me.
If you upload your log as described here it should say why we couldn't find the
ac
module:https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue