当前位置:网站首页>Tensorflow/Pytorch安装(Anaconda环境下,无版本冲突,亲测有效)
Tensorflow/Pytorch安装(Anaconda环境下,无版本冲突,亲测有效)
2022-08-04 05:31:00 【look up at the stars】
深度学习框架安装
零、前言
深度学习相关的热门框架主要为Tensorflow和Pytorch,通过各框架官网引导一般可以正常安装该框架,但是真正动手安装过的同学应该都知道这些第三方库之间可能存在版本冲突的问题,作者在经历了多次折磨之后,记录了自己配置环境的过程(无版本冲突,亲测有效),这些相关库若没有特别大的版本更新,以下安装过程是固定的。
一、Tensorflow安装
1.创建并进入指定虚拟环境(此处summer是我创建的虚拟环境名)
conda create --name summer
activate summer
2.安装相关包
conda install python==3.6
pip install numpy==1.19.5 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install tensorflow==2.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install matplotlib==3.3.4 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install tensorflow_datasets -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install scipy==1.5.4 -i https://pypi.tuna.tsinghua.edu.cn/simple
conda install opencv
pip install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple
conda install scikit-image
二、Pytorch安装
1.创建并进入指定虚拟环境(此处summer是我创建的虚拟环境名)
conda create --name torch1.9 python==3.7
activate torch1.9
2.安装相关包
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge
pip install torchkeras -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install matplotlib==3.3.4 -i https://pypi.tuna.tsinghua.edu.cn/simple
conda install pandas
pip install sklearn -i https://pypi.tuna.tsinghua.edu.cn/simple
边栏推荐
- Amazon Cloud Technology Build On 2022 - AIot Season 2 IoT Special Experiment Experience
- LeetCode_Dec_3rd_Week
- Pytest common plug-in
- tensorRT教程——使用tensorRT OP 搭建自己的网络
- LeetCode_Nov_3rd_Week
- Windows10重置MySQL用户密码
- Copy攻城狮的年度之“战”|回顾2020
- Code to celebrate the Dragon Boat Festival - Zongzi, your heart
- How to grow into a senior engineer?
- PCL窗口操作
猜你喜欢

MNIST手写数字识别 —— ResNet-经典卷积神经网络

度量学习(Metric learning、损失函数、triplet、三元组损失、fastreid)

【论文阅读】Multi-View Spectral Clustering with Optimal Neighborhood Laplacian Matrix

集合--LinkedList

安装MySQL的详细步骤

浅谈游戏音效测试点

迅雷关闭自动更新

Detailed steps to install MySQL

How to get started with MOOSE platform - an example of how to run the official tutorial

Cut the hit pro subtitles export of essays
随机推荐
剪映专业版字幕导出随笔
Copy攻城狮信手”粘“来 AI 对对联
LeetCode_Nov_3rd_Week
如何成长为高级工程师?
Thunderbolt turns off automatic updates
度量学习(Metric learning)—— 基于分类损失函数(softmax、交叉熵、cosface、arcface)
LeetCode_Dec_1st_Week
tmux概念和使用
pytorch学习-没掌握的点
【论文阅读】SPANET: SPATIAL PYRAMID ATTENTION NETWORK FOR ENHANCED IMAGE RECOGNITION
LeetCode_Nov_2nd_Week
【论文阅读】Anchor-Free Person Search
makefile基础学习
SQL注入详解
Copy攻城狮5分钟在线体验 MindIR 格式模型生成
LeetCode_22_Apr_4th_Week
中国联通、欧莱雅和钉钉都在争相打造的秘密武器?虚拟IP未来还有怎样的可能
MOOSE平台官方第二个例子分析——关于创建Kernel,求解对流扩散方程
基于BiGRU和GAN的数据生成方法
tensorRT5.15 使用中的注意点