Muyun99's wiki Muyun99's wiki
首页
学术搬砖
学习笔记
生活杂谈
wiki搬运
资源收藏
关于
  • 分类
  • 标签
  • 归档
GitHub (opens new window)

Muyun99

努力成为一个善良的人
首页
学术搬砖
学习笔记
生活杂谈
wiki搬运
资源收藏
关于
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • 常见 bug 修复

  • 环境配置

    • GPU功率不一致
    • Anaconda下载及配置
    • 从零开始配PyTorch GPU环境
    • ubuntu 18-04 搭建 go 语言开发环境
    • GPU速度太慢问题排查
    • Ubuntu系统安装
    • 服务器重装系统
    • Clash 配置
  • 常用库的常见用法

  • wiki搬运
  • 环境配置
Muyun99
2021-03-09

Anaconda下载及配置

# 1. 下载 Anaconda

https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

bash

# 2. 更新Anaconda的源

# 换为清华源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes   
1
2
3
4
5
6
7
8
# 查看源
conda config --show
vim ~/.condarc
conda config --show-sources
1
2
3
# 换回原来的源
conda config --remove-key channels
1

# 3. conda创建虚拟环境

  1. 创建虚拟环境

    conda create --name PyTorch python=3.7
    conda create --name TensorFlow python=3.7
    
    1
    2
  2. 删除虚拟环境

    conda remove -n open-mmlab --all
    
    1

# 4. 进入/退出conda创建的环境

  1. 进入conda创建的环境

    conda activate PyTorch
    
    1
  2. 退出conda创建的环境

    conda activate PyTorch
    
    1

# 5. 安装相应的包

  1. 安装PyTorch

    conda install pytorch torchvision cudatoolkit=10.0 
    
    1
  2. 安装TensorFlow

    conda install tensorflow-gpu=1.13.0
    
    1
  3. 安装keras

    conda install keras
    
    1
上次更新: 2021/08/02, 21:04:52
GPU功率不一致
从零开始配PyTorch GPU环境

← GPU功率不一致 从零开始配PyTorch GPU环境→

最近更新
01
Structured Knowledge Distillation for Semantic Segmentation
06-03
02
README 美化
05-20
03
常见 Tricks 代码片段
05-12
更多文章>
Theme by Vdoing | Copyright © 2021-2023 Muyun99 | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式
×