当前位置:网站首页>安装Pytorch+anaconda+cuda+cudnn
安装Pytorch+anaconda+cuda+cudnn
2022-07-24 05:15:00 【小新很新】
1.anaconda(5.2.0版本)
清华镜像(国内首选): https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
官网镜像:https://repo.continuum.io/archive/
安装好后,windows+r 键输入cmd

设置scikit-image=0.14.0


查看更新后的包


2.Cuda+cudnn安装
查看电脑显卡配置,右键进入nvidia控制面板,查看对应版本的cuda,进入谷歌搜索cuda9.1,选择下载页面进行下载

谷歌搜索cudnn,选择对应cudnn下载页面下载对应版本cudnn,并将下载的四个文件夹复制到以下路径中(不跳过,不替换)

windows+r 键输入cmd,输入 nvcc -V看是否正确运行
3.创建一个名为Pytorch的环境


输入:conda activate PyTorch激活环境,
去Pytorch官网下载需要的版本,这里下载的是的是以下版本的安装包(按键 Ctrl+F可在网页内搜索)

然后通过以下安装,因为网络的原因有几次下载失败,重新下载,可输入 tor之后按Tab键自动锁定


显示环境中这两个包安装成功
4.安装opencv-python==3.4.2


安装成功
5.pycharm配置
选择配置环境中的Python.exe

6.验证测试


结束
PS:清华镜像(国内首选):
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
官网镜像:Index of /
conda create -n PyTorch python=3.6.5
conda info --envs
conda activate PyTorch
conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0 -c pytorch
Index of /anaconda/pkgs/main/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
pip install opencv-contrib-python==3.4.2.16
cv2. __version__
边栏推荐
- [deep learning] (III) image classification
- MySQL transaction and its problems and isolation level
- NumPy 统计相关函数示例教程
- Scikit learn -- steps of machine learning application development
- OSS文件上传
- Drools 开发决策表
- Using a* heuristic search to solve maze routing problem
- Codeforce:d2. remove the substring (hard version) [greedy string + subsequence]
- Pointer learning diary (V) classic abstract data types and standard function libraries
- Wang Qing, director of cloud infrastructure software research and development of Intel (China): Intel's technology development and prospects in cloud native
猜你喜欢

Markov random field: definition, properties, maximum a posteriori probability problem, energy minimization problem

web开发

The fourth job: about the usage of cat, grep, cut, sort, uniq, VIM, TR and other commands

How can NFT, whose stars enter the market against the market, get out of the independent market?

Fiddler抓包工具的使用

DHCP principle and configuration

This article takes you to understand C string functions and memory functions in simple terms

手写orm框架

Reading excerpts from Liu run's "bottom logic"

PPPoE网关模拟环境搭建
随机推荐
Jersey2.25.1集成freemarker
Use of fiddler packet capturing tool
【sklearn】PCA
线程的介绍
Embedded system transplantation [3] - uboot burning and use
。 Single type digital sensing is an application 0 Up address is at the factory
Execution sequence of finally and return
The fourth job: about the usage of cat, grep, cut, sort, uniq, VIM, TR and other commands
Support complex T4 file systems such as model group monitoring and real-time alarm. e
Blue Bridge Cup 31 day sprint 21 day (C language)
Machine vision learning summary
【sklearn】RF 交叉验证 袋外数据 参数学习曲线 网格搜索
Scikit learn -- steps of machine learning application development
The world's first large aerospace model came out. Wenxin's second supplement "Fuchun Mountain Residence map" is Baidu Pratt Whitney AI's perseverance
ssm的整合
Learning pyramid context encoder network for high quality image painting paper notes
C table data De duplication
Pointer learning diary (I)
XML schema
Pointer learning diary (III)