安装nerf-pytorch报错:download_example_data.sh: line 1: wget: command not found - MacStudio M1

Mac下面默认没有wget导致脚本执行错误,安装homebrew和wget来解决。

1
2
3
4
5
6
7
8
9
10
# 终端安装Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 按照提示输入密码

# 设置brew环境变量
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/d2l/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

# 安装wget
brew install wget