当前位置:网站首页>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
边栏推荐
猜你喜欢
![[CV-Learning] Linear Classifier (SVM Basics)](/img/94/b48e34b2c215ca47f8ca25ce97547e.png)
[CV-Learning] Linear Classifier (SVM Basics)

tensorRT5.15 使用中的注意点

Copy攻城狮的年度之“战”|回顾2020

光条提取中的连通域筛除

target has libraries with conflicting names: libcrypto.a and libssl.a.

Copy Siege Lion 5-minute online experience MindIR format model generation

亚马逊云科技 Build On 2022 - AIot 第二季物联网专场实验心得

深度确定性策略梯度(DDPG)

arm学习-1-开发板

基于asp.net的法律援助平台的设计与实现(附项目链接)
随机推荐
target has libraries with conflicting names: libcrypto.a and libssl.a.
光条提取中的连通域筛除
卷积神经网络入门详解
MNIST手写数字识别 —— Lenet-5首个商用级别卷积神经网络
[Copy Siege Lion Log] Flying Pulp Academy Intensive Learning 7-Day Punch Camp-Study Notes
SQL注入详解
【论文阅读】Further Non-local and Channel Attention Networks for Vehicle Re-identification
[English learning][sentence] good sentence
多线程顺序输出
MOOSE平台官方第二个例子分析——关于创建Kernel,求解对流扩散方程
FAREWARE ADDRESS
tmux概念和使用
fuser 使用—— YOLOV5内存溢出——kill nvidai-smi 无pid 的 GPU 进程
counting cycle
[开发杂项][VS Code]remote-ssd retry failed
双向LSTM
Golang environment variable settings (2)--GOMODULE & GOPROXY
Amazon Cloud Technology Build On-Amazon Neptune's Knowledge Graph-Based Recommendation Model Building Experience
How to get started with MOOSE platform - an example of how to run the official tutorial
arm-3-中断体系结构