美文网首页
Mac 安装Pytorch

Mac 安装Pytorch

作者: 多彩海洋 | 来源:发表于2019-12-14 20:26 被阅读0次

推荐使用anaconda安装torch.

  1. 查看anaconda的版本

brew search anaconda

  1. 开始安装

执行brew install homebrew/cask/anaconda

  1. 配置环境变量

echo "export PATH="your install path">>~/.bash_profile
source ~/.bash_profile

  1. 安装pytorch

conda install pytorch torchvision -c pytorch

  1. jupyter notebook环境

在命令行输入,启动
jupyter notebook

  1. 测试pytorch是否安装成功


    torch测试

相关文章

网友评论

      本文标题:Mac 安装Pytorch

      本文链接:https://www.haomeiwen.com/subject/kfjhnctx.html