无法在Google Colab上载巨大的文件/数据集

问题描述

我正在上传TSV文件以便在GColab上进行处理,该文件为4GB,并且上传过程在很长的时间内(数小时)没有完成。这里的任何指针都有很大帮助。点击here以查看上传过程的详细信息

解决方法

可以是您的互联网连接。 upload small .py files时,Google Colab的导入功能会更有用。对于大文件,建议您使用Google云端硬盘,然后将其上传到您的帐户中,然后将其移动或复制到您的Google Colab实例中:

1。复制您要使用的文件:

%cp "path/to/the file/file_name.extension" "path/to/your/google-colab-instance"

Google colab实例通常是这样的-/contents/

类似地,

2。移动您要使用的文件:

%mv "path/to/the file/file_name.extension" "path/to/your/google-colab-instance"

第一个“”将是您将.csv文件上传到驱动器中的路径。 希望这可以帮助。在评论中让我知道。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...