I am using quarto in vscode.
When I run quarto check
, the output is:
Unable to locate an installed version of Python 3.
Install Python 3 from https://www.python.org/downloads/
However, when I open any *.py vscode detects my python.
I installed python from windows store. Python is installed in this folder:
C:UsersusuarioAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0
How I can configure QUARTO to solve this problem?
3
Answers
The solution was to uninstall the Python downloaded from the Windows Store and reinstall it from https://www.python.org/downloads/. Thanks @Peter
You can explicitly set the Python path in the Quarto configuration
Open or create a _quarto.yml file in your project directory
and add this configuration:
Worked for me once
this issue may be due to an environment variable. You can try uninstalling python and then reinstalling python from the Windows Store. When installing, check
Add python.exe to PATH
in the bottom left corner.