I exported a virtual environment in my devcontaine...
# general
m
I exported a virtual environment in my devcontainer with pants and it successfully created a distribution with all necessary modules. However the imports fail when coding. Isn't it enough to add
"python.defaultInterpreterPath": "./dist/export/python/virtualenvs/default/3.8.13/bin/python",
in my vscode devcontainer settings? When I add
"python.analysis.extraPaths": ["./dist/export/python/virtualenvs/default/3.8.13/bin/python"],
analysis with Pylance starts working, but the imports still fail.