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

相关推荐
学Linux的语莫11 分钟前
linux的root目录缓存清理
linux·运维·服务器
oMcLin13 分钟前
如何在 SUSE Linux Enterprise Server 15 上部署并优化 K3s 集群,提升轻量级容器化应用的资源利用率?
linux·运维·服务器
L_090740 分钟前
【Linux】进程概念
linux
Ghost Face...1 小时前
深入解析YT6801驱动模块架构
linux·运维·服务器
比奇堡派星星1 小时前
Linux 杂项设备驱动框架详解
linux·arm开发·驱动开发
Hooray111 小时前
前后端分离_案例学习_Python+Flask+VUE3
后端·python·学习·flask
小二·1 小时前
Python 学习教程(第2篇):用 Flask 开发你的第一个 Web 应用
python·学习·flask
Eternity∞1 小时前
基于Linux系统vim编译器情况下的C语言学习
linux·c语言·开发语言·学习·vim
芝麻馅汤圆儿1 小时前
cpu 大小核
linux·运维·centos
落叶,听雪1 小时前
河南AI建站
人工智能·python