ubuntu18.04 安装pytorch
前面安装了 cuda ,cudann 现在终于可以安装 pytorch 了
官网下载
https://pytorch.org/执行上面的语句 发现有问题
单独下载 cuda tookit
https://repo.anaconda.com/pkgs/main/linux-64/cudatoolkit-10.1.243-h6bb024c_0.conda
然后本地安装
进入文件所在的目录
conda install --use-local ./cudatoolkit-10.1.243-h6bb024c_0.conda
下面这几个也很难下载:
https://repo.anaconda.com/pkgs/main/linux-64/python-3.7.7-hcf32534_0_cpython.conda
https://repo.anaconda.com/pkgs/main/linux-64/pandas-1.0.3-py37h0573a6f_0.conda
conda下载慢问题
更改下载源
sudo gedit ~/.condarc
填入
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
- defaults
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
- https://repo.continuum.io/pkgs/free
- https://repo.continuum.io/pkgs/r
- https://repo.continuum.io/pkgs/pro
show_channel_urls: true
查看结果 :
conda config --show
版权声明:本文为ithinking110原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。