conda 常见命令

conda 信息

conda info -e

环境列表

conda env list

创建新环境

conda create -n py python=3.5

删除新环境

conda remove -n py --all

重命名环境

conda create -n py3.5 --clone py

激活环境

conda activate py

退出环境

conda deactivate

1.配置清华镜像源

直接在anaconda prompt下输入以下代码即可。

代码如下:

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/conda-forge/

#设置搜索时显示通道地址

conda config --set show_channel_urls yes

2.配置中科大镜像源

代码如下:

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/

#设置搜索时显示通道地址

conda config --set show_channel_urls yes

3、配置上海交通大学镜像源

命令如下:

conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main/

conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free/

conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/cloud/conda-forge/

显示添加的镜像源

conda config --show channels

#设置搜索时显示通道地址

conda config --set show_channel_urls yes

删除镜像源,换回默认源

conda config --remove-key channels

相关推荐
Java红桃峰峰日拱一卒3 分钟前
在jdk8的centos上安装jdk17
linux·jdk17·jdk8
M78佐菲6 小时前
ARM学习笔记(1)
linux·arm开发·笔记·嵌入式硬件·学习
骇客野人6 小时前
Redis 完整安装部署方案(Linux,分【源码编译】+【Docker】两种,推荐生产用源码,测试快速用 Docker)
运维
益达丫7 小时前
Socket编程揭秘:端口、IP与进程通信的底层逻辑
linux·笔记
蓝速科技9 小时前
会议室门牌公告通知发布选型与落地指南丨蓝速科技
大数据·运维·数据库·人工智能·科技
chicheese10 小时前
Linux 面试速查表:从初级到高级,附高频场景答题模板
linux·运维
Linux-lucky10 小时前
32-38-Linux学习之旅之MySQL综合
linux·运维·学习·mysql·ubuntu
智能运维指南11 小时前
2026年ITSM系统怎么选?四款主流方案与五维评估模型
运维·itsm·嘉为蓝鲸
vortex511 小时前
常用终端模拟器全面对比:Kitty、WezTerm、Ghostty 与 Konsole
linux
我命由我1234511 小时前
Git 推送报错:error: src refspec main does not match any
运维·git·gitee·github·运维开发·学习方法·版本控制