其他分享
首页 > 其他分享> > Win10快速离线安装PyTorch(CPU)版

Win10快速离线安装PyTorch(CPU)版

作者:互联网

(1)下载安装包:

pytorch-1.4.0-py3.7_cpu_0.tar.bz2

torchvision-0.5.0-py37_cpu.tar.bz2

(2)anaconda安装PyTorch

conda install pytorch-1.4.0-py3.7_cpu_0.tar.bz2

在安装时,可能会报如下错误,可能存在的问题是用户权限不够,本人解决方法为anacoda prompt 采用管理员身份打开,然后再执行上述步骤即可安装成功。

InvalidArchiveError(
"Error with archive C:\\Users\\Ad\\.conda\\pkgs\\paddlepaddle-1.6.1-py37_cpu_windows.tar.bz2.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nFailed to open 'C:\\Users\\ Ad\\.conda\\pkgs\\paddlepaddle-1.6.1-py37_cpu_windows.tar.bz2'")
InvalidArchiveError(
"Error with archive C:\\Users\\Ad\\.conda\\pkgs\\certifi-2019.9.11-py37_0.tar.bz2.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nFailed to open 'C:\\Users\\Ad\\.conda\\pkgs\\certifi-2019.9.11-py37_0.tar.bz2'")
InvalidArchiveError("Error with archive C:\\Users\\Ad\\.conda\\pkgs\\conda-4.7.12-py37_0.tar.bz2.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nFailed to open 'C:\\Users\\Ad\\.conda\\pkgs\\conda-4.7.12-py37_0.tar.bz2'")

引自https://blog.csdn.net/qq_43188358/article/details/103405967

(3)anaconda 安装torchvision

conda install torchvision-0.5.0-py37_cpu.tar.bz2

执行过程和存在的问题与(2)相同。

(4)查看是否安装成功,如果能够正常导入,则表示安装成功。

桔梗花语啊 发布了12 篇原创文章 · 获赞 4 · 访问量 5万+ 私信 关注

标签:bz2,tar,py37,离线,re,PyTorch,conda,pkgs,Win10
来源: https://blog.csdn.net/u013479571/article/details/104426953