如何解决:ModuleNotFoundError:没有名为“ google.colab”的模块 [英] How to resolve: ModuleNotFoundError: No module named 'google.colab'

查看:2324
本文介绍了如何解决:ModuleNotFoundError:没有名为“ google.colab”的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运行命令:

from google.colab import auth

但是我收到此错误:


ModuleNotFoundError:没有名为 google.colab的模块。

ModuleNotFoundError: No module named 'google.colab'

从python访问Google驱动器上的文件是必需的。有一个包google,但没有模块colab。如何解决此错误?

This is required for accessing files on google drive from python. There is a package google but not module colab in it. How to resolve this error?

推荐答案

您只需下载 google-colab 并在本地使用。

You can simply download google-colab and use it in local.

pip install google-colab

这篇关于如何解决:ModuleNotFoundError:没有名为“ google.colab”的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆