pytorch的安装
--------------------------------------------------pytorch相关安装---------------------------------------------------
Step1 确认版本信息
1、根据安装的cuda toolkit版本 确认支持的pytorch版本:
最新版本官网地址:Start Locally | PyTorch
历史版本官网地址:Previous PyTorch Versions | PyTorch
2、根据ptorch版本确认torchvison和python版本:
官方地址:GitHub - pytorch/vision: Datasets, Transforms and Models specific to Computer Vision
Step2 安装python
安装对应的python版本,推荐使用anaconda创建对应版本的python环境
Anaconda 官方地址:Anaconda | The World's Most Popular Data Science Platform
推荐设置国内镜像路径:
conda config --add channels Index of /anaconda/pkgs/free/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
conda config --add channels Error
conda config --add channels Index of /anaconda/cloud/msys2/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
conda config --set show_channel_urls yes
Step3 安装pytorch
根据查询到的版本信息,通过官方提供的命令安装 torch torchvison torchaudio
最新版本官网地址:Start Locally | PyTorch
历史版官网地址:Previous PyTorch Versions | PyTorch
pytorch的安装--测试_huoshi191的博客-CSDN博客
pytorch的安装
--------------------------------------------------pytorch相关安装---------------------------------------------------
Step1 确认版本信息
1、根据安装的cuda toolkit版本 确认支持的pytorch版本:
最新版本官网地址:Start Locally | PyTorch
历史版本官网地址:Previous PyTorch Versions | PyTorch
2、根据ptorch版本确认torchvison和python版本:
官方地址:GitHub - pytorch/vision: Datasets, Transforms and Models specific to Computer Vision
Step2 安装python
安装对应的python版本,推荐使用anaconda创建对应版本的python环境
Anaconda 官方地址:Anaconda | The World's Most Popular Data Science Platform
推荐设置国内镜像路径:
conda config --add channels Index of /anaconda/pkgs/free/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
conda config --add channels Error
conda config --add channels Index of /anaconda/cloud/msys2/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
conda config --set show_channel_urls yes
Step3 安装pytorch
根据查询到的版本信息,通过官方提供的命令安装 torch torchvison torchaudio
最新版本官网地址:Start Locally | PyTorch
历史版官网地址:Previous PyTorch Versions | PyTorch
pytorch的安装--测试_huoshi191的博客-CSDN博客