下载最新版Anaconda、安装、更换源、配置虚拟环境并在vscode中使用

文章目录

进入官网

https://repo.anaconda.com/

或进入清华大学下载
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

进入下载页

安装




更换源

  1. 查看已经存在的镜像源

    bash
    conda config --show channels

  1. 添加清华大学镜像源
bash 复制代码
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch

Anaconda 仓库与第三方源(conda-forge、msys2、pytorch等)的镜像,各系统都可以通过修改用户目录下的 .condarc 文件。Windows 用户无法直接创建名为 .condarc 的文件,可先执行 conda config --set show_channel_urls yes 生成该文件之后再修改。

  1. 设置搜索时显示通道地址
bash 复制代码
conda config --set show_channel_urls yes
  1. 删除已经存在的镜像源
bash 复制代码
conda config --remove-key channels

配置虚拟环境env


![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/7ccc81aec23d47ceb416ff34af35cb17.png#pic_center =500x

安装包requests


在vscode中使用虚拟环境

相关推荐
jiunian_cn6 分钟前
【Linux】centos软件安装
linux·运维·centos
程序员JerrySUN18 分钟前
[特殊字符] 深入理解 Linux 内核进程管理:架构、核心函数与调度机制
java·linux·架构
孤寂大仙v20 分钟前
【计算机网络】非阻塞IO——select实现多路转接
linux·计算机网络
蓝婷儿26 分钟前
6个月Python学习计划 Day 16 - 面向对象编程(OOP)基础
开发语言·python·学习
派阿喵搞电子44 分钟前
Ubuntu下有关UDP网络通信的指令
linux·服务器·网络
Evan_ZGYF丶1 小时前
【PCIe总线】 -- PCI、PCIe相关实现
linux·嵌入式·pcie·pci
chao_7891 小时前
链表题解——两两交换链表中的节点【LeetCode】
数据结构·python·leetcode·链表
舰长1151 小时前
Ubuntu挂载本地镜像源(像CentOS 一样挂载本地镜像源)
linux·ubuntu·centos
程序员JerrySUN1 小时前
全面理解 Linux 内核性能问题:分类、实战与调优策略
java·linux·运维·服务器·单片机
大霞上仙2 小时前
nonlocal 与global关键字
开发语言·python