conda 常用的命令

conda --version conda版本


conda create --name myenv python=3.8 新建一个虚拟环境


conda remove -n nlp --all 删除某个虚拟环境


conda activate myenv 激活某个虚拟环境


conda deactivate 实现在现有虚拟环境列表中切换环境


conda env list 查看有哪些虚拟环境


conda list 查看激活环境下安装了哪些包


激活虚拟环境后,然后安装包

conda install numpy

pip install numpy

conda update numpy

在当前激活环境下安装opencv

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-contrib-python


删除虚拟环境中的某个包

conda remove --name your_env_name package_name


显示所有源

conda config --show channels


配置清华源

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/pytorch/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64/


删除某个源

conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/


相关推荐
乌萨奇也要立志学C++6 分钟前
【Linux】进程概念(二):进程查看与 fork 初探
linux·运维·服务器
雨落Liy10 分钟前
Nginx 从入门到进阶:反向代理、负载均衡与高性能实战指南
运维·nginx·负载均衡
Yyyy48242 分钟前
Nginx负载均衡集群实验步骤
运维·nginx·负载均衡
獭.獭.2 小时前
Linux -- 信号【上】
linux·运维·服务器
hashiqimiya2 小时前
centos配置环境变量jdk
linux·运维·centos
hashiqimiya2 小时前
权限更改centos中系统文件无法创建文件夹,使用命令让普通用户具备操作文件夹
linux
路由侠内网穿透3 小时前
本地部署 GPS 跟踪系统 Traccar 并实现外部访问
运维·服务器·网络·windows·tcp/ip
傻傻虎虎5 小时前
【Docker】常用帮忙、镜像、容器、其他命令合集(2)
运维·docker·容器
ZERO_pan6 小时前
服务器装机遇到的问题
运维·服务器
逆小舟6 小时前
【Linux】人事档案——用户及组管理
linux·c++