TypeError:无法读取Google colaboratory中未定义的属性"_uploadFiles" [英] TypeError: Cannot read property '_uploadFiles' of undefined in google colaboratory
问题描述
我正在尝试在Google Colaboratory中编写上传文件,并且我将编写以下代码.
I am trying to write upload the file in Google Colaboratory and I'm going to write the code as below.
from google.colab import files
uploaded = files.upload()
但是我在浏览器中运行代码时遇到了以下错误.
But I am getting the below error to run the code in browser.
MessageError:TypeError:无法读取未定义的属性'_uploadFiles'
MessageError: TypeError: Cannot read property '_uploadFiles' of undefined
请帮助我解决问题.
推荐答案
我刚刚尝试了代码段:
from google.colab import files
uploaded = files.upload()
一切都按预期进行.
您观察到的错误的典型原因是使用不受支持的浏览器或浏览器扩展.尝试禁用扩展.或者,如果您使用的浏览器不是Firefox,Safari或Chrome,则请尝试其中一种.
A typical cause of the error you observe is using an unsupported browser or a browser extension. Try disabling extensions. Or, if you are using a browser other than Firefox, Safari, or Chrome, try one of these.
这篇关于TypeError:无法读取Google colaboratory中未定义的属性"_uploadFiles"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!