当前位置:网站首页>在pycharm中pytorch的安装
在pycharm中pytorch的安装
2022-06-24 03:34:00 【不大不小椰】
今天刚开始实际接触pytorch,工欲善其事必先利其器,咱得有趁手的工具,网上安装教程很多,也很详细,但大部分是基于anaconda环境,用anaconda安装pytorch确实好用且易于管理,但是anaconda着实有些臃肿,对于空间不足的,不想删除python的同学,我们可以直接下载pytorch,后续会出现啥问题俺先去试试水,具体步骤如下:
1.版本选择
1.1检查显卡、更新驱动
没有独显的可跳过这一步
● 最好先更新驱动
● win+R键 -> 输入cmd -> 输入下面指令查看相关信息
nvidia-smi

记住介个版本号。
1.2选择版本
因为我们环境用的不是anaconda,那第三行我们就选择Pip,第五行的Computer Platform选择比自己版本号低的就可以了,复制最下面的指令。
2.用pycharm安装pytorch
打开pycharm,有建好的项目,或者新建一个项目都可以,点最下面一栏的terminal,把上面复制的指令粘贴上去回车执行就好了。
下载完后检测一下安装好没。
import torch
print(torch.cuda.is_available())
结果为True
接着冲!!!
边栏推荐
- Liaoyuan social cloud primary actual combat camp test environment script
- How do I check the trademark registration number? Where do I need to check?
- What are the advantages of EIP? What is the relationship between EIP and fixed IP?
- Big coffee face to face | Dr. Chen Guoguo talks about intelligent voice
- Sinclair radio stopped broadcasting many TV stations, suspected of being attacked by blackmail software
- Grpc: how to add API Prometheus monitoring interceptors / Middleware?
- What does cloud desktop mean? What are the characteristics of cloud desktop?
- What technology does cloud computing elasticity scale? What are the advantages of elastic scaling in cloud computing?
- Grpc: how to make grpc provide restful API services?
- Is it necessary to buy EIP? Price analysis of EIP
猜你喜欢

Community pycharm installation visual database

Ar 3D map technology

QT creator tips
Thank you for your recognition! One thank-you note after another
![[summary of interview questions] zj5](/img/d8/ece82f8b2479adb948ba706f6f5039.jpg)
[summary of interview questions] zj5

Get to know MySQL database

618大促:手机品牌“神仙打架”,高端市场“谁主沉浮”?

元气森林推“有矿”,农夫山泉们跟着“卷”?
![[summary of interview questions] zj6 redis](/img/4b/eadf66ca8d834f049f3546d348fa32.jpg)
[summary of interview questions] zj6 redis

On Sunday, I rolled up the uni app "uview excellent UI framework"
随机推荐
EIP maximum EIP EIP remote desktop access
Applicationclientprotocol of yarn source code
How to solve the problem of easycvr playing the total recording time in the specified time period?
Grpc: how to reasonably manage log configuration?
Mocktio usage (Part 2)
Technical dry goods - how to use AI technology to accurately identify mining Trojans
[summary of interview questions] zj5
How to install CentOS 6.5 PHP extension
Concise and practical time code
[Tencent cloud update] against 11.11! Here comes the 1.1% discount for enterprises!
What is the price of the elastic public network IP bandwidth
What are the responsibilities of cloud desktop administrators? How to use cloud desktop?
Industrial security experts talk about how to build security protection capability for government big data platform?
Why do I need a code signing certificate? Where can I get a code signing certificate?
What does elastic scaling of cloud computing mean? What are the application scenarios for elastic scaling of cloud computing?
NLP task summary introduction and understanding
[hot] with a budget of only 100 yuan, how to build a 1-year web site on Tencent cloud??
Coding Ci of Devops
What is elastic scaling in cloud computing? What are the main applications of elastic scaling in cloud computing?
What does cloud desktop mean? What are the characteristics of cloud desktop?