当前位置:网站首页>Common commands in CONDA and pip environments
Common commands in CONDA and pip environments
2022-07-27 05:28:00 【Charleslc's blog】
Sort out the ones you usually use conda and pip command
see conda Information about
conda info
install & to update & remove
conda install < Package name > Install the specified package
conda remove < Package name > Remove the specified package
conda update < Package name > Update specified package
see conda Download source
conda config --show channels
Add download source
# China University of science and technology
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
# Tsinghua source
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 --set show_channel_urls yes
Delete a download source
conda config --show channels [name] To delete the name of the source
Switch back to the original download source
conda config --remove-key channels
Create an environment
conda create -n [name] python=3.8
# for example conda create -n pytorch_env python=3.8
Delete an environment
conda remove -n [name]--all
Switching environment
conda activate env
View all your environments
conda env list
pip Download source configuration
Temporarily use the domestic download source
Common download sources :
Alibaba cloud http://mirrors.aliyun.com/pypi/simple/
University of science and technology of China https://pypi.mirrors.ustc.edu.cn/simple/
douban (douban) http://pypi.douban.com/simple/
Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple/
University of science and technology of China http://pypi.mirrors.ustc.edu.cn/simple/
Temporary use
pip install < Package name > -i https://mirrors.aliyun.com/pypi/simple
Permanently change the download source
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
View all download sources
pip config list
Upgrade package name
pip install --upgrade Package name to upgrade
Remove domestic sources
pip config unset global.index-url
pip agent
pip install --proxy=“http://127.0.0.1:15732” vaex
边栏推荐
猜你喜欢

SSM framework integration

李宏毅机器学习组队学习打卡活动day01---机器学习介绍

The receiver sets the concurrency and current limit

Notes Series docker installation PostgreSQL 14

Message reliability processing

JVM Part 1: memory and garbage collection part 7 -- runtime data area heap

数据库连接池&&Druid使用

pyside2____ 1. Installation and case listing

pytorch 数据类型 和 numpy 数据 相互转化

稀疏数组→五子棋的存盘续盘等操作
随机推荐
The receiver sets the concurrency and current limit
通用视图,DRF视图回顾
The concept of cloud native application and 15 characteristics of cloud native application
注册功能实现
JVM part I: memory and garbage collection part II -- class loading subsystem
B1031 check ID card
Flask的使用
B1022 a+b in d-ary
李宏毅机器学习组队学习打卡活动day06---卷积神经网络
Differences and examples between internal classes and static internal classes
李宏毅机器学习组队学习打卡活动day04---深度学习介绍和反向传播机制
JVM Part 1: memory and garbage collection part 8 - runtime data area - Method area
Li Hongyi machine learning team learning punch in activity day01 --- introduction to machine learning
秒杀系统设计
如何快速有效解决数据库连接失败问题
How to quickly and effectively solve the problem of database connection failure
如何将Excel表格中的多列内容合并到一列
Flask登录实现
JVM上篇:内存与垃圾回收篇九--运行时数据区-对象的实例化,内存布局与访问定位
B1031 查验身份证