Skip to content
Discussion options

You must be logged in to vote

Let me clarifiy some things here:

QUARTO_PYTHON is supposed to point to the binary.

@mcanouil we support QUARTO_PYTHON has a directory in which the binary can be found. If a directory is provided we look for these binaries (const bin = ["python3", "python", "python3.exe", "python.exe"]). You can check the resolution of QUARTO_PYTHON in the code base.

But maybe the Quarto extension sets this? I certainly did not set it...

@cbrnr Yes in VSCODE we do set the QUARTO_PYTHON env var to use the active Python Interpreter. This can be found in the code base for the extension
https://github.com/quarto-dev/quarto/blob/f9edec34e53817e9c9f73cb349f524a82bcc6474/apps/vscode/src/core/terminal.ts#L40-L44

Replies: 1 comment 15 replies

Comment options

You must be logged in to vote
15 replies
@cbrnr
Comment options

@mcanouil
Comment options

@cbrnr
Comment options

@cderv
Comment options

Answer selected by cbrnr
@cbrnr
Comment options

@mcanouil
Comment options

@cbrnr
Comment options

@cbrnr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
python-setup Issues with Python's environment and setup vscode
3 participants