当前位置:网站首页>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
边栏推荐
猜你喜欢

【五一专属】阿里云ECS大测评#五一专属|向所有热爱分享的“技术劳动者”致敬#

迅雷关闭自动更新

打金?工作室?账号被封?游戏灰黑产离我们有多近

数据库的简述与常用操作指南

亚马逊云科技Build On-Amazon Neptune基于知识图谱的推荐模型构建心得

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

光条提取中的连通域筛除

【Copy攻城狮日志】飞浆学院强化学习7日打卡营-学习笔记

yoloV5 使用——训练速度慢,加速训练

【论文阅读】TransReID: Transformer-based Object Re-Identification
随机推荐
TensorRT 5 初步认识
LeetCode_Dec_2nd_Week
【代码学习】
第三章 标准单元库(上)
[开发杂项][调试]debug into kernel
Deep learning, "grain and grass" first--On the way to obtain data sets
AWS uses EC2 to reduce the training cost of DeepRacer: DeepRacer-for-cloud practical operation
打金?工作室?账号被封?游戏灰黑产离我们有多近
彻底删除MySQL教程
【论文阅读】Anchor-Free Person Search
MOOSE平台使用入门攻略——如何运行官方教程的例子
MNIST Handwritten Digit Recognition - From Perceptrons to Convolutional Neural Networks
Brief description of database and common operation guide
LeetCode_Dec_3rd_Week
LeetCode_Nov_2nd_Week
Golang environment variable settings (2)--GOMODULE & GOPROXY
【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation
Copy攻城狮的年度之“战”|回顾2020
代码庆端午--粽你心意
Windows10重置MySQL用户密码