在chaquopy android studio中导入python库时出现问题

在chaquopy android studio中导入python库时出现问题,python,android,android-studio,nltk,chaquopy,Python,Android,Android Studio,Nltk,Chaquopy,这是Gradle:app文件代码: apply plugin: 'com.android.application' apply plugin: 'com.chaquo.python' android { compileSdkVersion 29 buildToolsVersion "30.0.1" defaultConfig { applicationId "com.example.speechtotext" sourceSets{

这是Gradle:app文件代码:

apply plugin: 'com.android.application'
apply plugin: 'com.chaquo.python'
android {
compileSdkVersion 29
buildToolsVersion "30.0.1"

defaultConfig {
    applicationId "com.example.speechtotext"
    sourceSets{
        main{
            python{
                srcDirs=["src/main/python"]
            }
        }
    }

    minSdkVersion 16
    targetSdkVersion 29
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    ndk {
        abiFilters "armeabi-v7a", "x86"
    }
    python{

        buildPython "C:/Users/YASHWANTH REDDY/AppData/Local/Programs/Python/Python37/python.exe"}
    }
    python{
        pip{
            install "nltk"
        }
    }
    }
    buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
   }
   }
   }
   dependencies {
   implementation fileTree(dir: "libs", include: ["*.jar"])
   implementation 'androidx.appcompat:appcompat:1.2.0'
   implementation 'com.google.android.material:material:1.0.0'
   implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
   implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
   compile files('libs/opennlp-tools-1.6.0.jar')
   testImplementation 'junit:junit:4.12'
   androidTestImplementation 'androidx.test.ext:junit:1.1.1'
   androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
   }
这是Gradle:(android中的python)

我已经链接了所有插件,正如chaquopy官方文档中提到的那样,我得到了以下错误

enter code here

   A problem occurred starting process 'command 'C:/Users/YASHWANTH''. Please set buildPython to your Python executable path. See https://chaquo.com/chaquopy/doc/current/android.html#buildpython.
当我删除

     python{
        pip{
            install "nltk"
        }
    }

因此,请帮助我为什么在尝试安装任何python库时出现上述错误,

buildPython
无法接受此版本的Chaquopy中包含空格的文件名。这是我的

对于Chaquopy 9.0.0及以上版本:

如果以前安装的Python带有默认设置,那么路径上可能有可用的
py
命令,Chaquopy将自动使用该命令。尝试删除
buildPython
行,看看它是否有效


如果没有,请从下载Python并使用默认设置进行安装。然后,您应该能够删除
buildPython
行。

buildPython
在此版本的Chaquopy中不能接受包含空格的文件名。这是我的

对于Chaquopy 9.0.0及以上版本:

如果以前安装的Python带有默认设置,那么路径上可能有可用的
py
命令,Chaquopy将自动使用该命令。尝试删除
buildPython
行,看看它是否有效

如果没有,请从下载Python并使用默认设置进行安装。然后您应该能够删除
buildPython

     python{
        pip{
            install "nltk"
        }
    }