Pytorch CPU版本安装教程

一、检查本电脑是否可以安装GPU

https://blog.csdn.net/Mind_programmonkey/article/details/99688839

二、下载安装anaconda

1.下载

我下载的是miniconda,省内存,用清华镜像下载快

Index of /anaconda/miniconda/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

2.安装

步骤:

https://www.bilibili.com/video/BV1Fy4y1878z/?spm_id_from=333.880.my_history.page.click

三、pytorch的安装

1.设置虚拟环境

2.在虚拟环境中下载pytorch

 好多文章会说在清华镜像里下载会快,但是会出问题,这里直接下载就可以,速度也不是很慢

若出现一下情况,可以换各网络重新尝试:我用校园网就报错,用自己的热点就解决啦!!!

Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/r/win-64/current_repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /r/win-64/current_repodata.json (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x0000022C29EBEB48>, 'Connection to conda.anaconda.org timed out. (connect timeout=9.15)'))"))

https://blog.csdn.net/weixin_68827159/article/details/126859706

https://blog.csdn.net/Bluebro/article/details/127161165

https://blog.csdn.net/Redamancy06/article/details/125820669

四、PyCharm安装

1.下载

下载官网

2.安装

步骤:https://www.bilibili.com/video/BV1Fy4y1878z/?spm_id_from=333.880.my_history.page.click

3.问题:Pycharm conda虚拟环境no such file or directory

解决方法

  • 4
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值