有多种可能,最有可能为 .whl在下载中出错,文件被损坏了,删除缓存,重新pip即可。 参考:Python 安装 .whl 文件时报错:zipfile.BadZipFile: File is not a zip file_疯魔coding君的博客-CSDN博客.whl 是 Python 的一种第三方包安装文件,最近在树莓派上的虚拟环境中使用如下命令:pip install tensorflow-2.4.0-cp37-none-linux_armv7l.whl安装 tensorflow 的 .whl 文件过程中总是抛出异常信息:zipfile.BadZipFile: File is not a zip file而出现此问题的原因一般是该文件受损,重新下载 .whl 文件安装即可。...https://blog.csdn.net/qq_44214671/article/details/115159039?ops_request_misc=&request_id=&biz_id=102&utm_term=zipfile.BadZipFile:%20File%20is%20no&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-0-115159039.nonecase&spm=1018.2226.3001.4187