Skip to content

Codespace doesn't handle python venv properly #25452

Answered by jkeech
kmahyyg asked this question in Codespaces
Discussion options

You must be logged in to vote

@kmahyyg, thanks for the feedback! This is coming from Oryx here: https://github.com/microsoft/Oryx/blob/1a35fbce482b20b71290f3a837a3469803ce4b44/src/BuildScriptGenerator/Python/PythonPlatform.cs#L466. We run Oryx automatically if you do not specify a postCreateCommand in devcontainer.json. Oryx inspects your repo, infers the project type, and then restores and builds the project if it’s one of the languages/frameworks that it understands.

One way to workaround this is to define a postCreateCommand in your repo which could do any sort of setup you’d like after the container is created instead of falling back to the default inference behavior.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants