-
DescriptionI use pyenv to manage my Python environments (including virtual environments). In a Quarto project using a specific pyenv version, everything works fine (meaning that Quarto correctly uses the currently active Python environment as set by pyenv), but I get a warning e.g. when publishing (again, everything works correctly despite of this warning). The same warnings are also popping up in the output of
Is this something that I should be worried about? It is a bit confusing, because everything is detected correctly, so the warning doesn't make sense to me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
Did you set If you did not set it, it means Quarto find this and since it is valid, go to the next location to find Python. It should be fine, but better to not have warnings especially regarding configuration such as the Python setup. |
Beta Was this translation helpful? Give feedback.
Let me clarifiy some things here:
@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 ofQUARTO_PYTHON
in the code base.@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 extensionhttps://github.com/quarto-dev/quarto/blob/f9edec34e53817e9c9f73cb349f524a82bcc6474/apps/vscode/src/core/terminal.ts#L40-L44