Search code examples
chaquopy

Please set python.buildPython to your Python executable path


I try to run code from this repository: https://github.com/chaquo/chaquopy But I have an error: 'py -3' failed to start (org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'py''). Please set python.buildPython to your Python executable path.

How to fix it?


Solution

  • Chaquopy needs Python to be installed on your build machine in order to build the app. If you don't already have it installed, I recommend the official Windows Python release from python.org, which will put the "py" launcher on your PATH by default.

    Or if you have Python installed somewhere else, use the buildPython setting to tell Chaquopy where to find it, as described here.