如何解决“ ModuleNotFoundError:没有名为'google_auth_oauthlib'的模块”

时间:2019-09-16 06:36:52

标签: python python-3.x google-api blogger google-oauth2

尝试通过Python发布博客作者

class ConvertUrltoBitmap extends AsyncTask<String, Void, Bitmap> {
@Override
protected void onPreExecute() {
    super.onPreExecute();
}
public Bitmap doInBackground(String... urls) {
    Bitmap map = null;
    try {
        URL url = new URL(urls[0]);
        HttpURLConnection connection =(HttpURLConnection)url.openConnection();
        connection.setDoInput(true);
        connection.connect();
        InputStream input = connection.getInputStream();
        map= BitmapFactory.decodeStream(input);
    } catch (Exception e) {
        e.printStackTrace();
    }
    return map;
}

protected void onPostExecute(Bitmap bitmap){
    try {
        mWidgetItems.add(bitmap);
    }catch (Exception exception){
        exception.printStackTrace();
    }
}}
  

C:\ Users \ KIRA \ PycharmProjects \ blog \ venv \ Scripts \ python.exe   是错误:C:/Users/KIRA/.PyCharmCE2018.3/config/scratches/scope.py   追溯(最近一次通话):文件   “ C:/Users/KIRA/.PyCharmCE2018.3/config/scratches/scope.py”,第1行,在          从google_auth_oauthlib.flow导入InstalledAppFlow ModuleNotFoundError:没有名为“ google_auth_oauthlib”的模块

0 个答案:

没有答案
相关问题