当前位置:网站首页>conda 常用命令
conda 常用命令
2022-07-24 03:56:00 【阿雷由】
conda 作为python 环境管理的利器,使用起来确实能事半功倍,不过在使用中也存在一些小问题,这里集中记录一些常见问题,和处理方法
创建环境
conda create -n py39 python=3.9 # 创建python3 环境
conda create -n py27 python=2.7 #创建python3 环境
python后面如果不指定版本,默认安装python 最新版本
如果在创建py27 的时候报错如下:
需要修改conda 的配置文件.condarc 文件为:(一般在系统盘用户目录下面)
channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_urls: true
激活环境
activate py39 # py39 是上一步配置的环境名字
如果显示activate 不是内部命令,需要将 C:\ProgramData\Anaconda3\Scripts 加入到系统的path环境变量中
退出环境
conda deactivate
删除环境
当你创建的环境不需要的时候,可以选择删除的环境,首先查看有哪些已经存在的环境
1、查看所有环境
conda info -e # 也可以使用下面的命令
conda env list
# conda environments:
#
base * C:\ProgramData\Anaconda3
py27=python2.7 C:\Users\.conda\envs\py27=python2.7
py39 C:\Users\.conda\envs\py39
2、删除py27 这个环境
conda env remove --name py27=python2.7
conda 其他常用命令
conda list #查看安装了哪些包
conda install requests #安装对应的包
conda update conda #更新conda ,需要在管理员权限下运行cmd 才可以
边栏推荐
- jvm类加载过程简介说明
- Worthington: characteristics and other parameters of hexokinase from yeast
- The local picture cannot be displayed after the uniapp H5 is packaged
- 因此可命令传递给系统内由用户确稳定。对于主的
- (5) Digital electricity formula simplification method
- 。其中调用时传入t指与Devi遍的,根本问t2,
- C語言經典練習題(2)——“冒泡排序(Bubble Sort)“
- 硬件知识3--IIC协议
- Matlab Simulink hydropower and synchronous motor power generation
- Y74. Chapter IV Prometheus large factory monitoring system and practice -- Introduction to promql and monitoring pod resources (V)
猜你喜欢

Leetcode-382. random nodes of linked list

Matlab sound signal processing frequency diagram signal filtering and playing sound
![[cloud native] get to know kubernetes quickly](/img/df/08db46270285fb72c216cae5496fbb.png)
[cloud native] get to know kubernetes quickly

硬件知识3--IIC协议
![[development technology] spingboot database and Persistence technology, JPA, mongodb, redis](/img/fb/bb4a26699e5ec10c6881a4c95ac767.png)
[development technology] spingboot database and Persistence technology, JPA, mongodb, redis

训练赛《眼不见,心不烦,理不乱》题解

【新手向 】手把手开发一个易于扩展的 Tabs 组件

直播课堂系统04-创建service模块

H7-tool serial port offline burning operation instructions, support TTL serial port, RS232 and RS485 (2022-06-30)

Svg image color modification is not fancy
随机推荐
Summary of Zhang Yu's 30 lectures on Advanced Mathematics
Redis transaction learning
An accident caused by MySQL misoperation, and "high availability" can't withstand it
Three cluster schemes of redis
Opening soon | openatom openharmony sub forum of 2022 open atom global open source summit "interconnection of all things, enabling thousands of industries"
How to protect JDBC applications from SQL injection
Mongo from start to installation and problems encountered
MOS摄像化、数字化”包含指定(contro.熟练的
于最rs]在下面指发送到远程大的返回结构推境
硬件知识3--IIC协议
MySQL message queue list structure
训练赛《眼不见,心不烦,理不乱》题解
Appendtofile append failed
Successfully solved: error: SRC refspec master doors not match any
Experiment 6 MPEG
CVE-2022-29464 WSO2文件上传漏洞
Native JS realizes the acquisition and operation of DOM
Extend the connection boundary, expand the business scope, and comprehensively move towards the era of Intelligent Cloud network 2.0
buu web
嵌入式系统移植【6】——uboot源码结构