--- a/plug-ins/python/meson.build
+++ b/plug-ins/python/meson.build
@@ -28,7 +28,7 @@
 
 if python.found()
   python_config = configuration_data()
-  python_config.set('PYTHON_PATH', python.path())
+  python_config.set('PYTHON_PATH', '@TERMUX_PREFIX@/bin/python3')
 
   configure_file(
     input : 'pygimp.interp.in',
