当前位置:网站首页>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
边栏推荐
猜你喜欢
打金?工作室?账号被封?游戏灰黑产离我们有多近
Completely remove MySQL tutorial
"A minute" Copy siege lion log 】 【 run MindSpore LeNet model
【论文阅读】Further Non-local and Channel Attention Networks for Vehicle Re-identification
浅谈游戏音效测试点
亚马逊云科技Build On-Amazon Neptune基于知识图谱的推荐模型构建心得
Windows10重置MySQL用户密码
MNIST手写数字识别 —— 从二分类到十分类
No matching function for call to 'RCTBridgeModuleNameForClass'
arm learning-1-development board
随机推荐
AWS uses EC2 to reduce the training cost of DeepRacer: DeepRacer-for-cloud practical operation
亚马逊云科技Build On-Amazon Neptune基于知识图谱的推荐模型构建心得
【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation
Detailed steps to install MySQL
MOOSE平台官方第二个例子分析——关于创建Kernel,求解对流扩散方程
fuser 使用—— YOLOV5内存溢出——kill nvidai-smi 无pid 的 GPU 进程
Windows10重置MySQL用户密码
MNIST手写数字识别 —— 基于Mindspore快速构建感知机实现十分类
Copy攻城狮的年度之“战”|回顾2020
MFC读取点云,只能正常显示第一个,显示后面时报错
迅雷关闭自动更新
抽象类、内部类和接口
如何成长为高级工程师?
中国联通、欧莱雅和钉钉都在争相打造的秘密武器?虚拟IP未来还有怎样的可能
[日常办公][ssh]cheatsheet
arm learning-1-development board
【Copy攻城狮日志】“一分钟”跑通MindSpore的LeNet模型
集合---ArrayList的底层
ConnectionRefusedError: [Errno 111] Connection refused问题解决
Rules.make-适合在编辑模式下看