下载最新版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中使用虚拟环境

相关推荐
likfishdn7 分钟前
Linux的文件与目录管理
linux·运维·服务器
chian-ocean26 分钟前
Linux 文件缓冲区:高效数据访问的幕后推手
linux·运维·服务器
加油=^_^=28 分钟前
【Linux】进程优先级 | 进程调度(三)
linux·运维·服务器
紫雾凌寒38 分钟前
计算机视觉 |解锁视频理解三剑客——TimeSformer
python·深度学习·神经网络·计算机视觉·transformer·timesformer
吃汤圆的抹香鲸1 小时前
GoLand 安装包 绿色版 Win,Mac,Linux 包含IntelliJ全家桶 专为Go语言设计的集成开发环境(IDE)
linux·windows·macos·go·intellij-idea·go1.19
追寻光1 小时前
Cannot find a valid baseurl for repo: base/7/x86_64
linux
元气满满的热码式1 小时前
Docker数据卷操作实战
linux·运维·docker·云原生·容器
陆沙1 小时前
deepseek-r1-centos-本地服务器配置方法
linux·服务器·centos
程序员杰哥1 小时前
测试用例详解
自动化测试·软件测试·python·功能测试·测试工具·职场和发展·测试用例
吃汤圆的抹香鲸2 小时前
Rider 安装包 绿色版 Win/Mac/Linux 适合.NET和游戏开发者使用 2025全栈开发终极指南:从零配置到企业级实战
linux·运维·windows·sql·游戏·macos·.net