pytorch - Google Colab 最近引发错误 ModuleNotFoundError : No module named 'google.cloud.storage.retry'

标签 pytorch google-cloud-storage google-colaboratory allennlp

我的代码刚刚在本地和 colab 上正常运行,但是最近在 colab 上遇到了以下错误。 我使用 google colab 来运行我的代码。 安装了 allennlp 包。

Error when run code

最佳答案

  1. pip install --upgrade google-cloud-storage
  2. 重启运行时

上面的命令解决了我的问题!

关于pytorch - Google Colab 最近引发错误 ModuleNotFoundError : No module named 'google.cloud.storage.retry' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69835469/

相关文章:

Node.js POST 文件到服务器

python - Gsutil - 如何使用 Gsutil 检查文件是否存在于 GCS 存储桶(子目录)中

python - 是否可以使用 Google App Engine(不带 Google Compute Engine)通过 API 调用(使用 Python)将文件下载到 Google Cloud Storage

google-colaboratory - 如何在 Google Colaboratory 中隐藏单元格内容?

python - torch.transforms.normalize 中的数字是什么以及如何选择它们?

python - 如何在类中使用私有(private)方法反序列化 PyTorch 保存的模型?

python - 分词器在 torchtext 中无法正常工作

python - 如何通过函数在执行命令行脚本(行以 `!` 开头)的 Google Colaboratory 单元中抑制输出

google-colaboratory - 如何更新 Google Colab Python 版本?

python - 如何在pytorch中使用反向传播和自定义损失?