今天用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
- 选择Binaries;
- 下载ZIP;
- 最后将下载下来的unzip.exe文件复制到 C:\Windows\System32 即可。
重新回到jupyter运行,安全下车!!!