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

相关推荐
yaoxin52112312 分钟前
211. Java 异常 - Java 异常机制总结
java·开发语言·python
Empty_7772 小时前
编程之python基础
开发语言·python
YouEmbedded2 小时前
解码Linux文件IO目录检索与文件属性
linux·文件属性·文件io·目录检索
哲Zheᗜe༘5 小时前
了解学习Python编程之python基础
开发语言·python·学习
大聪明-PLUS5 小时前
关于新的 Linux 内核接口 gpio uapi 的说明
linux·嵌入式·arm·smarc
玉树临风江流儿6 小时前
Linux驱动开发总结速记
linux·运维·驱动开发
cccyi76 小时前
Linux 进程信号机制详解
linux·signal·volatile
麦麦大数据6 小时前
F024 RNN+Vue+Flask电影推荐可视化系统 python flask mysql 深度学习 echarts
python·rnn·深度学习·vue·echarts·电影推荐
Roc-xb6 小时前
ModuleNotFoundError: No module named ‘conda_token‘
开发语言·python·conda
weixin_525936337 小时前
部分Spark SQL编程要点
大数据·python·sql·spark