本文介绍了使用 Google Colab 上传本地文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试以这种方式使用 Google Collaboratory 上传本地文件:

Trying to upload local files using Google Collaboratory this way:

from google.colab import files
uploaded = files.upload()

我收到以下错误:

上传小部件仅在当前浏览器会话中已执行单元格时可用.请重新运行此单元格以启用.

我重新运行单元格但它不起作用...

I rerun the cell but it doesn't work...

推荐答案

听起来第三方 cookie 可能在您的浏览器中被禁用,请参阅 https://github.com/googlecolab/colabtools/issues/17.

It sounds like third-party cookies may be disabled in your browser, see https://github.com/googlecolab/colabtools/issues/17.

该设置位于 chrome://settings/content/cookies 下.

The setting is under chrome://settings/content/cookies.

这篇关于使用 Google Colab 上传本地文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 18:31
查看更多