当前位置:网站首页>conda和pip环境常用命令
conda和pip环境常用命令
2022-07-27 05:01:00 【CharlesLC的博客】
整理下自己比较常用的conda和pip命令
查看conda的信息
conda info
安装&更新&移除
conda install <包名> 安装指定包
conda remove <包名> 移除指定包
conda update <包名> 更新指定包
查看conda的下载源
conda config --show channels
添加下载源
#中科大源
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
# 清华源
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
删除某个下载源
conda config --show channels [name]要删除源的名字
切回原来的下载源
conda config --remove-key channels
创建一个环境
conda create -n [name] python=3.8
#例如 conda create -n pytorch_env python=3.8
删除一个环境
conda remove -n [name]--all
切换环境
conda activate env
查看自身的所有环境
conda env list
pip 下载源配置
临时使用国内下载源
常见下载源:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
临时使用
pip install <包名> -i https://mirrors.aliyun.com/pypi/simple
永久更改下载源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
查看所有下载源
pip config list
升级包名
pip install --upgrade 要升级的包名
移除国内源
pip config unset global.index-url
pip代理
pip install --proxy=“http://127.0.0.1:15732” vaex
边栏推荐
- JVM Part 1: memory and garbage collection part 10 - runtime data area - direct memory
- Scientific Computing Library -- Matplotlib
- Prime number screening (Ehrlich sieve method, interval sieve method, Euler sieve method)
- B1031 check ID card
- The project connects with Alipay payment, and the intranet penetration realizes the monitoring of asynchronous callback notification of successful payment of Alipay
- B1026 program running time
- Gradio quickly builds ml/dl Web Services
- JVM part I: memory and garbage collection part II -- class loading subsystem
- Detailed description of binary search tree
- How to store the startprocessinstancebykey method in acticiti in the variable table
猜你喜欢

弹球小游戏

Critical path principle

OFDM 16 lecture 2-ofdm and the DFT

辗转相除法

Detailed description of polymorphism

JVM上篇:内存与垃圾回收篇十--运行时数据区-直接内存

素数筛选(埃氏筛法,区间筛法,欧拉筛法)

Bean's life cycle & dependency injection * dependency auto assembly

《Robust and Precise Vehicle Localization based on Multi-sensor Fusionin Diverse City Scenes》翻译

Another skill is to earn 30000 yuan a month+
随机推荐
Acticiti中startProcessInstanceByKey方法在variable表中的如何存储
JVM上篇:内存与垃圾回收篇三--运行时数据区-概述及线程
B1024 科学计数法
Solution and principle analysis of feign call missing request header
mq常见问题
JVM Part 1: memory and garbage collection part 5 -- runtime data area virtual machine stack
JVM上篇:内存与垃圾回收篇十一--执行引擎
JVM上篇:内存与垃圾回收篇九--运行时数据区-对象的实例化,内存布局与访问定位
稀疏数组→五子棋的存盘续盘等操作
[optical flow] - data format analysis, flowwarp visualization
2022年郑州轻工业新生赛题目-打死我也不说
笔记系列k8s编排MySQL容器-有状态的容器创建过程
2、 MySQL advanced
B1024 scientific counting method
B1028 人口普查
Could not autowire. No beans of ‘userMapper‘ type found.
B1027 打印沙漏
34. 分析flexible.js
Slashes / and backslashes involved in writing code\
JVM Part 1: memory and garbage collection part 6 -- runtime data area local method & local method stack