本文介绍了使用Google Colab上传本地文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试通过这种方式使用Google合作实验室上传本地文件:
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上传本地文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!