Step 1 - Miniconda
-
下载 Miniconda sh 文件,链接如下
https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -
在终端中安装, 执行如下命令
bash Miniconda3-latest-MacOSX-x86_64.sh -
回车,输入 yes 回车, 一路往下就好了
-
检查版本 conda -V 如下错误
zsh: command not found: conda -
修改 .zshrc 文件
vim ~/.zshrc -
添加 export PATH=/Users/电脑用户名/miniconda3/bin:$PATH /Users/电脑用户名/miniconda3 是本机 conda 的安装路径
-
保存成功后,重新打开一个终端,输入conda -V,显示出版本号就OK了
Step 2 - Pytorch
- conda install pytorch torchvision -c pytorch
- 一直yes
- pip install pandas matplotlib notebook
Step 3 - Jupyter notebook
- pip install jupyter notebook
- 输入jupyter notebook 打开