Debug | zip和unzip 的安装与使用(Windows)

        今天用jupyter做绘图练习时需要从国内镜像下载 seaborn 数据集的压缩包,解压压缩包时,显示报错 !

# 从国内镜像下载 seaborn 数据集避免下一步加载数据集失败
!wget -nc "https://labfile.oss.aliyuncs.com/courses/2616/seaborn-data.zip"
!unzip seaborn-data.zip -d ~/

 报错信息

“unzip”不是内部或外部命令,也不是可运行的程序或批处理文件

错误分析

        在jupyter notebook使用 !unzip 遇到了这个问题,查到发现unzip是linux系统下,windows不自带。

解决方法

去unzip官网(Info-ZIP's UnZip

UnZip for Windows)下载:

  1. 选择Binaries;
  2. 下载ZIP;
  3. 最后将下载下来的unzip.exe文件复制到 C:\Windows\System32 即可。

 

          重新回到jupyter运行,安全下车!!! 

 

猜你喜欢

转载自blog.csdn.net/m0_69478345/article/details/130045044