吴恩达的课程中需要使用octave,记录一下mac下使用brew安装octave的步骤:
- 安装Xcode工具:在终端中输入:
xcode-select --install
- 安装brew工具:在终端中输入:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 更新brew:在终端中输入:
brew update
- 安装octave:在终端中输入
brew install octave
注:brew安装的octave似乎没有GUI,如果需要GUI则需要使用qt安装。
参考链接:OcatveWiki