azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

[codespaces] Python virtual environment setup

Open danieljurek opened this issue 3 years ago • 0 comments
trafficstars

When launching Python codespaces alerts come up before build... What's the earliest time we could/should run the vscode azd restore command? Python projects should also communicate with the Python extension, if possible, and indicate the appropriate interpreter (this could get interesting with multiple python projects)

Example error message in first run:

image

Example error message in first debugging run:

image

To fix:

  1. Run the "Restore API" task to get a python virtual environment on the instance
  2. Ctrl+Shift+P > Python: Select Interpreter ... select the one created in the restore step

danieljurek avatar Oct 19 '22 18:10 danieljurek