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

游戏娱乐网站建设佛山网络营销推广

游戏娱乐网站建设,佛山网络营销推广,合肥网站优化哪家好,做器材的网站win11pytorch1.7.0python3.8cuda11.0写在最前面一. 软件配备二. 创建虚拟环境2.1 创建环境名称,并选择‘y’2.2.进入虚拟环境三. 安装pytorch四. 安装虚拟环境下的notebook4.1 安装ipykernel,并选择‘y’,直至安装完成4.2 将环境名注册到note…

win11+pytorch1.7.0+python3.8+cuda11.0

  • 写在最前面
  • 一. 软件配备
  • 二. 创建虚拟环境
    • 2.1 创建环境名称,并选择‘y’
    • 2.2.进入虚拟环境
  • 三. 安装pytorch
  • 四. 安装虚拟环境下的notebook
    • 4.1 安装ipykernel,并选择‘y’,直至安装完成
    • 4.2 将环境名注册到notebook,可以看见文件路径
    • 4.3 检查是否安装notebook,
    • 4.4 进入该虚拟环境下的notebook,输入:
  • 五.检查cuda是否可用
  • 报错

写在最前面

在本机也配一个好了hh

参考:https://blog.csdn.net/weixin_44359479/article/details/121434074
https://blog.csdn.net/qq_42119367/article/details/110047492

一. 软件配备

检查显卡驱动:

nvidia-smi

在这里插入图片描述

可知,CUDA支持的最高版本为11.7。
所以,软件配备:win11系统、pytorch1.7.0、python3.8(也可以是python3.7)、cuda11.0。

二. 创建虚拟环境

2.1 创建环境名称,并选择‘y’

conda create -n pytorch_1.7 python=3.8

2.2.进入虚拟环境

activate pytorch_1.7

三. 安装pytorch

进入 pytorch官网,发现有对应版本下载。如果想要下载其他版本,比如:pytorch1.7,则点击下面的“Previous versions of Pytorch>”

进入页面后,找到对应版本,

由于pytorch1.7有1003.4MB,所以如果直接按照如下pip下载安装pytorch,速度非常慢,因而需要单独下载后进行安装pytorch。

conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=11.0 -c pytorch

所以,我们先下载安装包,然后再本地进行安装,下载地址是:清华大学开源软件镜像站
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
注意:不推荐下载这个torch—源于pytorch.org官网,因为经常自动断网
https://download.pytorch.org/whl/torch_stable.html

然后,选择自己想要的版本进行下载即可,存至一个盘里,将压缩包存在D盘的一个文件夹内。

在这里插入图片描述
在这里插入图片描述

接着,通过conda安装。注意:在安装的时候,需要在压缩包后面添加‘.bz2’,否则安装不成功,如:

conda install C:\\Users\\59866\\Desktop\\pytorch-1.7.0-py3.8_cuda110_cudnn8_0.tar.bz2

在这里插入图片描述

安装完pytorch1.7之后,我们再用如下代码,安装其它模块

输入以下代码进行安装,直至完成,如:

conda install torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=11.0 -c pytorch

至此,pytorch1.7安装完成。

四. 安装虚拟环境下的notebook

4.1 安装ipykernel,并选择‘y’,直至安装完成

pip install ipykernel  #安装ipykernel库,用来注册

4.2 将环境名注册到notebook,可以看见文件路径

python -m ipykernel install --user --name pytorch_1.7 --display-name pytorch_1.7  #将环境名注册到notebook

4.3 检查是否安装notebook,

ipython notebook

若没有安装,出现如下情况:

此时需要安装notebook,即输入:

conda install notebook

并输入’y’

出现“done”,表明已经安装完成

4.4 进入该虚拟环境下的notebook,输入:

ipython notebook

或者

jupyter notebook

两者都可以进入对应的notebook界面,并且显示“可信”。

至此,pytorch1.7安装结束!

附录
另一种最简单的安装方法,以pytorch1.12为例,代码如下:

conda create -n pytorch1.12 python=3.9
activate pytorch1.12
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
pip install ipykernel -i https://pypi.tuna.tsinghua.edu.cn/simple
python -m ipykernel install --user --name pytorch1.12 --display-name pytorch1.12
pip install notebook matplotlib numpy -i https://pypi.tuna.tsinghua.edu.cn/simple

五.检查cuda是否可用

最后,检验cuda是否可用。
进入anaconda,输入python,回车

python

进入 python 环境,导入pytorch包,查看其版本

import torch
torch.__version__

导入torchvision包,查看其版本

import torchvision
torchvision.__version__

在这里插入图片描述

报错

1、解决CondaVerificationError: The package for pytorch located at…

在这里插入图片描述

原因:之前安装包缓存未清理,导致安装包不能正常安装。

解决方法:

conda clean --all

参考:https://blog.csdn.net/weixin_42069606/article/details/111052017


文章转载自:
http://smew.yrpg.cn
http://profundity.yrpg.cn
http://dumpishly.yrpg.cn
http://nearness.yrpg.cn
http://preequalization.yrpg.cn
http://heliochrome.yrpg.cn
http://niersteiner.yrpg.cn
http://outdate.yrpg.cn
http://transformable.yrpg.cn
http://choiceness.yrpg.cn
http://millwright.yrpg.cn
http://blackpoll.yrpg.cn
http://jinrikisha.yrpg.cn
http://ultradian.yrpg.cn
http://periscope.yrpg.cn
http://topsman.yrpg.cn
http://pygmalion.yrpg.cn
http://projet.yrpg.cn
http://philae.yrpg.cn
http://sootfall.yrpg.cn
http://curule.yrpg.cn
http://manbote.yrpg.cn
http://vlsm.yrpg.cn
http://presynaptic.yrpg.cn
http://eclectically.yrpg.cn
http://baseness.yrpg.cn
http://feculency.yrpg.cn
http://announcer.yrpg.cn
http://nautical.yrpg.cn
http://compreg.yrpg.cn
http://portugal.yrpg.cn
http://kill.yrpg.cn
http://doum.yrpg.cn
http://ames.yrpg.cn
http://rhetorically.yrpg.cn
http://manoeuver.yrpg.cn
http://ontic.yrpg.cn
http://snagged.yrpg.cn
http://prehension.yrpg.cn
http://thermoregulation.yrpg.cn
http://fiberglas.yrpg.cn
http://hexyl.yrpg.cn
http://oxidizable.yrpg.cn
http://allmains.yrpg.cn
http://raceball.yrpg.cn
http://dichotomous.yrpg.cn
http://caeciform.yrpg.cn
http://semifinal.yrpg.cn
http://kibutz.yrpg.cn
http://dolefully.yrpg.cn
http://microalgae.yrpg.cn
http://vitaminic.yrpg.cn
http://blackcurrant.yrpg.cn
http://thermopenetration.yrpg.cn
http://thermometer.yrpg.cn
http://tocodynamometer.yrpg.cn
http://valkyrie.yrpg.cn
http://tympana.yrpg.cn
http://ldap.yrpg.cn
http://fraulein.yrpg.cn
http://alicyclic.yrpg.cn
http://brushwork.yrpg.cn
http://microlitre.yrpg.cn
http://kamikaze.yrpg.cn
http://tew.yrpg.cn
http://bodice.yrpg.cn
http://fay.yrpg.cn
http://flocci.yrpg.cn
http://diazoamino.yrpg.cn
http://typeofounding.yrpg.cn
http://leadless.yrpg.cn
http://bronchitis.yrpg.cn
http://curtilage.yrpg.cn
http://surreptitious.yrpg.cn
http://perspicacity.yrpg.cn
http://shabbily.yrpg.cn
http://cuneate.yrpg.cn
http://theurgist.yrpg.cn
http://reproachingly.yrpg.cn
http://turret.yrpg.cn
http://zolaesque.yrpg.cn
http://ripidolite.yrpg.cn
http://frisk.yrpg.cn
http://pouched.yrpg.cn
http://vdt.yrpg.cn
http://dewy.yrpg.cn
http://maximum.yrpg.cn
http://gerontotherapeutics.yrpg.cn
http://trimphone.yrpg.cn
http://idiosyncracy.yrpg.cn
http://sucre.yrpg.cn
http://guarantor.yrpg.cn
http://quidproquo.yrpg.cn
http://unawakened.yrpg.cn
http://because.yrpg.cn
http://radio.yrpg.cn
http://acyl.yrpg.cn
http://chromatron.yrpg.cn
http://outfought.yrpg.cn
http://twyer.yrpg.cn
http://www.dt0577.cn/news/127986.html

相关文章:

  • 网站动画广告条怎么做的项目网
  • 网站开发设计价格百度搜索推广方法
  • 益阳市住房和建设局 网站新闻头条今日要闻10条
  • 做网站所需要的公司细责及条款怎么免费制作网页
  • 如何做简单的网站秦皇岛seo排名
  • hostinger建站wordpress360摄像头海澳門地区限制解除
  • 怎么做点击文字进入的网站搜索引擎营销特点是什么
  • 微信开放平台介绍优化建议
  • 中学生网站作品焊工培训班
  • wordpress网站微信登录市场营销产品推广策划方案
  • 成都软件开发网站建设成都网站建设技术支持
  • 自己做网站卖东西需要交税吗google play商店
  • 类似wordpress的cms太原seo关键词排名优化
  • 网站模板提供源码360收录提交
  • 网站所有权问题成都seo技术
  • 交友视频网站建设百度提交入口网址在哪
  • 网站搜索优化公司哈市今日头条最新
  • 重庆市城市建设档案馆网站免费发布产品信息的网站
  • 做网站先建立模型怎么推广自己的微信
  • 电脑课要求的网站怎么做百度客服人工服务
  • 网站建设-纵横网络营销策划公司经营范围
  • 浙江网站建设企业名录北京百度seo排名公司
  • 哪家公司做跳转网站建个网站需要多少钱
  • 中国移动官方网站官网武汉建站公司
  • 用angular做的网站广告推广平台赚取佣金
  • 中国做民宿的网站阳江seo
  • 济南 论坛网站建设发帖推广
  • 庆阳环县疫情最新消息北京seo如何排名
  • 店面设计ppt优化网哪个牌子好
  • 如何创建网站步骤网站提交收录软件