安装pytorch的细节记录

1、根据教程安装pytorch的时候发现太慢了,无法容忍,根据https://blog.csdn.net/zzq060143/article/details/88042075z在Ancona Prompt平台上,输入以下命令

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

再运行conda install pytorch torchvision cudatoolkit=10.1(-c pythorch去掉)

速度直接飞起来了!

2、NotWritableError: The current user does not have write permissions to a required path.使用anaconda安装pytorch时候提示以上错误,原因是没有权限,以管理员身份启动prompt就可以了。

3、Anaconda Navigator:could not find or load the QT platform plugin "window in"

我在安装该环境之前安装了其它的python,设置了QT_QPA_PLATFORM_PLUGIN_PATH的路径,导致该路径不正确,我删除了该路径就可以启动了

也可以按照网上的说法,将该路径修改为C:ProgramDataAnaconda3pkgspyqt-5.9.2-py37h6538335_2Libraryplugins

原文地址:https://www.cnblogs.com/m-zhang-yang/p/12026353.html