pytorch win10-64bit 安装问题及解决

简短不看版:保证电脑64位同时python(64bit),直接到https://download.pytorch.org/whl/torch_stable.html下相应的轮子,pip install即可。

*torch和torchvision都要

————————————————————————————————

关于命名怎么看,个人参照这一篇:https://blog.csdn.net/lanchunhui/article/details/62417519

————————————————————————————————

详细版:

首先,龟速网络,要下快需要外部工具辅助【懂的】

尝试直接pip install torch暴力安装, ERROR: Command errored out with exit status 1

问题图1

网上说按官网(https://pytorch.org/)方式,ok

官网图

然后美滋滋复制黏贴,报错,ERROR: Could not find a version that satisfies the requirement torch>=1.6.0 (from -r requirements.

查了一下,两个办法,一个是需要用国内的镜像源来下载

pip install selenium -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

其中--trusted-host pypi.douban.com 的作用是获得ssl证书的认证【但我使用没用】

另一种是直接下轮子,好,我下~

轮子大集合

下了一堆,永远报错,ERROR: torch-1.5.1+cpu-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.

经过各种弯后,正准备放弃win裸装torch,改下anaconda继续的时候,灵光一闪

发现自己的python的32位的重新下了一个64位的,继续装轮子

完美,成功!

以上~

以上历时近一个多小时属于睡眠的时间QAQ

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。