windows10下运行.sh文件报错:wget: command not found

编程知识 更新时间:2023-05-02 16:54:22

问题描述:

小白以前用github或者下载资源时都是直接下载,而不用git下载

第一次用Git下载资源时运行.sh文件中有wget的命令,会出现以下错误:

$ sh get_datasets.sh
get_datasets.sh: line 2: wget: command not found
tar (child): cifar-10-python.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rm: cannot remove 'cifar-10-python.tar.gz': No such file or directory
 

问题解决:

原因就是没有安装wget工具

linux环境下很简单,只需要一行代码就能解决:

yum -y install wget

在windows10系统下,需要下载所需的.exe文件才能正常运行:

下载地址:https://eternallybored/misc/wget/

将其放入安装Git目录下的.\Git\mingw64\bin下

例如:E:\softwares\Git\mingw64\bin

即可正常运行:

至此,问题解决!

更多推荐

windows10下运行.sh文件报错:wget: command not found

本文发布于:2023-04-27 10:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/1584d065e320c14cdbad38301bd344a0.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   文件   sh   wget   command

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 106837文章数
  • 26986阅读数
  • 0评论数