https://pantsbuild.org/ logo
#general
Title
# general
m

modern-stone-88910

07/07/2022, 7:47 AM
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.
4 Views