美文网首页
Ubuntu16.04下PyTorch的环境配置

Ubuntu16.04下PyTorch的环境配置

作者: DavidLinux | 来源:发表于2020-02-03 17:17 被阅读0次

1、Anaconda的安装

命令行下执行:

1)、curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.shsh Miniconda3-latest-Linux-x86_64.sh

2)、sh Miniconda3-latest-Linux-x86_64.sh 

       按照提示逐步输入yes或回车

3)、source ~/.bashrc

2、PyTorch安装

      无cuda:

      conda install pytorch torchvision cpuonly -c pytorch

3、验证

具体步骤可参考https://pytorch.org/

相关文章

网友评论

      本文标题:Ubuntu16.04下PyTorch的环境配置

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