EOFError: Compressed file ended before the end-of-stream marker was reached

EOFError: Compressed file ended before the end-of-stream marker was reached

python在下载时,出现上述错误提示,一般这种问题都是因为所下载文件已经存在或下载了部分。若再重新下载,这会出现上述错误。

解决方式:找到下载的文件目录,删除文件,重新下载。

原文地址:https://www.cnblogs.com/chay/p/10421635.html

时间: 2024-10-11 01:10:59

EOFError: Compressed file ended before the end-of-stream marker was reached的相关文章

(知道因为下载数据库错误,而导致解压失败,但是找不到下载到哪里了呀!原来在这里)EOFError: Compressed file ended before the end-of-stream marker was reached

把下载好的数据放在这里就行了 背景:运行LeNet识别CIFAR-10的图像的代码时,报错: EOFError: Compressed file ended before the end-of-stream marker was reached 解决办法:在C:\Users\华硕\.keras\datasets的目录下面把 cifar-10-batches-py 这个文件夹删掉 原因: 第二次运行时,报错为找不到data_batch_1 这个文件,我的cifar-10-batches-py文件夹

EOFError: Compressed file ended before the end-of-stream marker was reached解决办法(在Windows下查看已下载的MNIST数据文件)

出现这个问题的原因是因为文件下载到一半就中断了,解决办法是删除datasets中下载到一半的数据包. 下面以我遇到的问题为例: 我下载数据下载到最后一个包就没有反应了,于是我强制终止了运行,可能是因为网络问题,到后面我再运行发现疯狂报错... 搜了很多博客,有的说删掉tmp文件夹下的文件,有的说删除掉dataset下的文件,但是后来我发现每个人的问题不一样,下载文件的目录可能也不同. 在Windows下查看已下载的MNIST数据文件 上图中画圈的位置有个Keras,我的datasets就是在Ke

Error: bzip2: Compressed file ends unexpectedly; # perhaps it is corrupted?

# 下载了一个.tar.bz2结尾的压缩文件,# 使用tar -xjf解压,但是报错. # 报错信息:# bzip2: Compressed file ends unexpectedly;        # perhaps it is corrupted?  *Possible* reason follows.# bzip2: Inappropriate ioctl for device        # Input file = (stdin), output file = (stdout)#

File System Design Case Studies

SRC=http://www.cs.rutgers.edu/~pxk/416/notes/13-fs-studies.html Paul Krzyzanowski April 24, 2014 Introduction We've studied various approaches to file system design. Now we'll look at some real file systems to explore the approaches that were taken i

Java determine uncompressed size of gzipped file

If you want to determine the uncompressed size of a gzip file from within a program, you can extract to original file size from the gzip file. This size is stored in the last 4 bytes of the file. This will only provide the correct value if the compre

File Compression and Archiving in linux (linux 中文件的归档)

1. Compressing Files at the Shell Prompt Red Hat Enterprise Linux provides the bzip2, gzip, and zip tools for compression from a shell prompt. The bzip2 compression tool is recommended because it provides the most compression and is found on most UNI

outdated: 33.Loading Compressed And Uncompressed TGA's

这一篇主要讲的是TGA文件的加载,TGA文件分为压缩与未压缩的两种. uncompressed和compressed的标头是不一样, // Uncompressed TGA header GLubyte uTGAcompare[12] = { 0,0,2,0,0,0,0,0,0,0,0,0 }; // Compressed TGA header GLubyte cTGAcompare[12] = { 0,0,10,0,0,0,0,0,0,0,0,0 }; 未压缩的TGA文件,在最后直接读取ima

Mysql启动失败 MYSQL:The server quit without updating PID file

编译安装MySQL5.6启动时出错 提示MYSQL:The server quit without updating PID file 首先执行 /bin/mysqld_safe --user=mysql & 失败 错误日志提示 mysqld_safe mysqld from pid file ended 继续 初始化mysql /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --

Linux System Programming note 8 ——File and Directory Management

1. The Stat Family #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> int stat(const char *path, struct stat *buf); int fstat(int fd, struct stat *buf); int lstat(const char *path, struct stat *buf); struct stat{ dev_t st_d