一、检查本电脑是否可以安装GPU
二、下载安装anaconda
1.下载
我下载的是miniconda,省内存,用清华镜像下载快
Index of /anaconda/miniconda/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
2.安装
步骤:
三、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)'))"))
四、PyCharm安装
1.下载
2.安装
3.问题:Pycharm conda虚拟环境no such file or directory