Python packages imported in editable mode can't be resolved by pylance in VSCode
I have several Python packages developed locally, which I often use in VSCode projects. For these projects, I create a new virtualenv and install these packages with pip install -e ../path/to/package. This succeeds, and I can use these packages in the project. However, VSCode underlines the package's import line in yellow, with this error: Import "mypackage" could not be resolved Pylance(reportMissingImports) Again, mypackage works fine in the project, but VSCode reports that error, and I lose all autocomplete and type hint features when calling mypackage in the project. I ensured that the rig
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.