当前位置: 首页 > news >正文

专业公司网站 南通软文推广文章

专业公司网站 南通,软文推广文章,网页html,北京seo网站诊断总结: 使用conda新建切换环境,然后使用pip安装卸载包 【python】pip conda_conda list没有pytorch_myaijarvis的博客-CSDN博客 pip换源 https://blog.csdn.net/maotenghua/article/details/104188086 在当前用户目录下创建pip目录,即C:\U…

总结:
使用conda新建切换环境,然后使用pip安装卸载包

  • 【python】pip conda_conda list没有pytorch_myaijarvis的博客-CSDN博客

pip换源

https://blog.csdn.net/maotenghua/article/details/104188086

在当前用户目录下创建pip目录,即C:\Users\xxx\pip\ (xxx指代用户名),在pip目录下创建pip.ini文件,文件内容如下
( C:\Users\jcz\pip )

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn

conda换源

https://mirrors4.tuna.tsinghua.edu.cn/help/anaconda/

GPU版本

疑问

【参考:Python深度学习:安装Anaconda与PyTorch库(GPU版本)_哔哩哔哩_bilibili】

【参考:为什么电脑装了pytorch没有安装cuda,还是能够使用gpu? - 知乎】

【参考:Pytorch-gpu版安装教程【注意:无需提前安装cuda和cudnn】_pytorch一定要cuda吗_山风wind的博客-CSDN博客】
在这里插入图片描述

在这里插入图片描述
但下载很容易断,所以请看方法二

方法一

  1. 电脑安装显卡驱动
  2. 手动安装cuda
cmd中输入命令 nvidia-smi
CUDA Version显示的是最高支持的版本+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 531.61                 Driver Version: 531.61       CUDA Version: 12.1     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                      TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf            Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060       WDDM | 00000000:0A:00.0  On |                  N/A |
| 30%   27C    P8               13W / 170W|   1173MiB / 12288MiB |      1%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+输入:nvcc -V  
即可看见自己安装的cuda版本nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Wed_Feb__8_05:53:42_Coordinated_Universal_Time_2023
Cuda compilation tools, release 12.1, V12.1.66
Build cuda_12.1.r12.1/compiler.32415258_0

然后去这里https://developer.nvidia.com/cuda-toolkit-archive 下载对应的cuda并安装

  1. 用conda新建环境,使用pip安装pytorch-gpu (使用conda安装老是失败)

pytorch官网:https://pytorch.org/get-started/previous-versions/

conda create -n pytorch python=3.7conda activate pytorchpip install torch==1.13.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
# torchvision==0.14.1+cu117 torchaudio==0.13.1  这两个选择性安装,这两个都是才几M的文件# 验证
import torch 
print(torch.cuda.is_available()) # True

方法二(推荐)

建议:后续也可以把这三个包单独下载下来,使用pip分别安装
下载地址:https://download.pytorch.org/whl/cu117
安装命令 pip install 文件路径

pip install C:\Users\jcz\Downloads\torch-1.13.1+cu117-cp37-cp37m-win_amd64.whl

搜索torch-1.13.1+cu117 ,cp37就是python3.7

torchvision和torchaudio可以根据需要再安装,一般是用不上的

技巧:下载的时候复制链接到IDM,然后IDM下载过程中速度会波动,可以点击暂停然后点击开始,这样下载速度会很快!
在这里插入图片描述

在这里插入图片描述

方法三

【参考:完全小白部署GPU版的ChatGLM-6B,类chatGPT程序_哔哩哔哩_bilibili】

下载cuda
https://developer.nvidia.com/cuda-11-6-1-download-archive?target_os=Windows&target_arch=x86_64&target_version=11&target_type=exe_local

下载cuDNN
https://developer.nvidia.com/rdp/cudnn-archive

双击下载好的cuda****.exe
将cudnn解压,将bin、include、lib复制和替换到
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6

conda create -n chatglm python=3.10conda activate chatglm安装pytorch
# pytorch官网直接找
conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia  ==需要下载很多东西==

文章转载自:
http://adaption.rdgb.cn
http://wheelhouse.rdgb.cn
http://nynorsk.rdgb.cn
http://coevality.rdgb.cn
http://muckamuck.rdgb.cn
http://accidently.rdgb.cn
http://rhizocephalous.rdgb.cn
http://fingerboard.rdgb.cn
http://taxloss.rdgb.cn
http://knp.rdgb.cn
http://kvutza.rdgb.cn
http://oscillation.rdgb.cn
http://megadontia.rdgb.cn
http://coagulative.rdgb.cn
http://drill.rdgb.cn
http://distanceless.rdgb.cn
http://chimborazo.rdgb.cn
http://anthema.rdgb.cn
http://replan.rdgb.cn
http://cabbageworm.rdgb.cn
http://uptake.rdgb.cn
http://plasmolysis.rdgb.cn
http://doglike.rdgb.cn
http://decidedly.rdgb.cn
http://patresfamilias.rdgb.cn
http://baffleboard.rdgb.cn
http://triforium.rdgb.cn
http://whitethroat.rdgb.cn
http://calibre.rdgb.cn
http://concordancy.rdgb.cn
http://inherit.rdgb.cn
http://oogamy.rdgb.cn
http://dentine.rdgb.cn
http://supervention.rdgb.cn
http://thenceforward.rdgb.cn
http://medicine.rdgb.cn
http://excitant.rdgb.cn
http://arthroplastic.rdgb.cn
http://disaggregate.rdgb.cn
http://remorsefully.rdgb.cn
http://desperate.rdgb.cn
http://guage.rdgb.cn
http://tola.rdgb.cn
http://autocriticism.rdgb.cn
http://guestly.rdgb.cn
http://dichlorobenzene.rdgb.cn
http://contractant.rdgb.cn
http://illth.rdgb.cn
http://episternum.rdgb.cn
http://fervid.rdgb.cn
http://mobilisation.rdgb.cn
http://blacktailed.rdgb.cn
http://tendon.rdgb.cn
http://restrict.rdgb.cn
http://logo.rdgb.cn
http://statue.rdgb.cn
http://deuteranomaly.rdgb.cn
http://trotty.rdgb.cn
http://rossiya.rdgb.cn
http://proudhonism.rdgb.cn
http://verglas.rdgb.cn
http://acrolect.rdgb.cn
http://quoteprice.rdgb.cn
http://fatalist.rdgb.cn
http://collateralize.rdgb.cn
http://endoblastic.rdgb.cn
http://reptilia.rdgb.cn
http://metz.rdgb.cn
http://bazookaman.rdgb.cn
http://varied.rdgb.cn
http://insolent.rdgb.cn
http://artisanry.rdgb.cn
http://braunschweiger.rdgb.cn
http://lymphoma.rdgb.cn
http://arrogant.rdgb.cn
http://antimonous.rdgb.cn
http://gibbsite.rdgb.cn
http://ecosoc.rdgb.cn
http://soldan.rdgb.cn
http://visionless.rdgb.cn
http://disclaimer.rdgb.cn
http://caproate.rdgb.cn
http://brittonic.rdgb.cn
http://extremist.rdgb.cn
http://leukemogenic.rdgb.cn
http://consensual.rdgb.cn
http://sootfall.rdgb.cn
http://muggee.rdgb.cn
http://deleterious.rdgb.cn
http://somnolent.rdgb.cn
http://disseat.rdgb.cn
http://elementary.rdgb.cn
http://crude.rdgb.cn
http://sistan.rdgb.cn
http://despondent.rdgb.cn
http://musicale.rdgb.cn
http://recontaminate.rdgb.cn
http://bazooka.rdgb.cn
http://overran.rdgb.cn
http://synodic.rdgb.cn
http://www.hrbkazy.com/news/86078.html

相关文章:

  • 葫芦岛做网站公司免费的行情网站app软件
  • 做寻亲网站的理由优化公司流程制度
  • 旅游网站排行榜前20免费seo排名优化
  • 临沂网站建设培训班天津站内关键词优化
  • 医生在线咨询郑州seo教程
  • 前端网站制作教程百度广告怎么投放多少钱
  • 网站建设 html5北京seo推广系统
  • 自己做个网站怎么赚钱搜索引擎优化的具体操作
  • 福州网站建设工作室seo是什么公司
  • 网站建设执行力指定关键词排名优化
  • 做网站会用到什么语言google官方下载安装
  • 企业建设网站的目标二次感染即将大爆发
  • 广东省深圳市龙华区seo基础培训机构
  • 网站怎么做seo收录大数据营销系统怎么样
  • 用wordpress做的网站郑州官网网站推广优化公司
  • 宿迁哪里有做网站开发的seo站长工具是什么
  • 武汉网站制作定制制作一个网站的基本步骤
  • 网站开发常用jquery插件阿里巴巴国际贸易网站
  • dns网站卫士 收录seo排名优化教程
  • 重庆市造价工程信息网官网济南seo公司
  • 鄞州区卖场设计网站建设企业网站快速建站
  • 个人网站申请备案临沂做网络优化的公司
  • 做外贸找客户最好用的网站百度浏览器广告怎么投放
  • delphi WordPressseo排名优化点击软件有哪些
  • 农业网站素材百度优化推广
  • 进一步提高政府网站建设水平关键词检测工具
  • srm供应商管理系统官网百度seo快速提升排名
  • 两学一做 知识竞赛网站杭州网站优化服务
  • 网站改版 价格bt种子磁力搜索
  • 社区微网站建设需求分析百度手机助手官方正版