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

相关推荐
AOwhisky17 小时前
Redis 学习笔记(第三期):持久化与主从复制
运维·数据库·redis·笔记·学习·云计算
c2385617 小时前
Linux C++ 进度条进阶美化与工程化封装
linux·运维·服务器
李小白6617 小时前
第四天-WEB服务器基本原理,IIS服务
运维·服务器·前端
2401_8346369918 小时前
Nginx 从入门到实战:静态 / 动态站点、PHP 部署与反向代理全解析
运维·nginx·php
aosky18 小时前
一台电脑配置多个 SSH Key 对应不同的 GitHub 账号
运维·ssh·github
云登指纹浏览器19 小时前
WebDriver反检测技术详解:如何让自动化脚本看起来像真实浏览器
运维·自动化·跨境电商
xmtxz19 小时前
计算机网络基础课程学习心得:从理论抽象到硬核实战的进阶之路
运维·学习
凡人叶枫20 小时前
Effective C++ 条款17:以独立语句将 newed 对象置入智能指针
java·linux·开发语言·c++·算法
RisunJan20 小时前
Linux命令-pgrep (通过进程名查找进程 ID)
linux·运维
信创工程师-小杨21 小时前
Linux内网环境如何解决依赖的问题
linux·运维·服务器