当前位置:网站首页>CONDA virtual environment management (create, delete, clone, rename, export and import)
CONDA virtual environment management (create, delete, clone, rename, export and import)
2022-04-23 05:52:00 【Lin Zi 520】
1. Create an environment 、 Activate the environment
# Create an environment env_name
conda create -n env_name python=3.7 # env_name The name of the new environment created for you
# Activate the environment
activate env_name
2. Delete environment
conda remove -n env_name --all # env_name For the name of the environment you want to delete
3. Copy ( clone ) Environmental Science
conda create -n env2 --clone env1
4. Rename environment
conda In fact, there is no rename command , Renaming is achieved by clone Accomplished , The process is as follows
1.clone One copy env_old Our environment is env_new
2. then , Delete env_old Environment
conda create -n env_new --clone env_old
conda remove -n env_old --all
5. Export environment
anaconda env_name # envname Is the name of the environment to export , You need to switch to this environment before exporting
conda env export > environment.yaml
pip freeze > pip.txt
6. Import environment
conda env create -f environment.yaml # Directly based on yaml File to create an environment and install dependent packages
pip install -r pip.txt # be used for pip Derived
conda install --y --file requirements.txt # Apply to numpy=1.19.1 Formal
版权声明
本文为[Lin Zi 520]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230543036792.html
边栏推荐
- 域内用户访问域外samba服务器用户名密码错误
- EditorConfig
- Meta annotation (annotation of annotation)
- Pyqy5 learning (III): qlineedit + qtextedit
- redhat实现目录下特定文本类型内关键字查找及vim模式下关键字查找
- lambda表达式
- Font shape `OMX/cmex/m/n‘ in size <10.53937> not available (Font) size <10.95> substituted.
- JVM family (4) -- memory overflow (OOM)
- interviewter:介绍一下MySQL日期函数
- Shell instruction learning 1
猜你喜欢
随机推荐
Pytorch学习记录(九):Pytorch中卷积神经网络
rsync实现文件服务器备份
Map对象 map.get(key)
Pytorch——数据加载和处理
多线程与高并发(3)——synchronized原理
redhat实现目录下特定文本类型内关键字查找及vim模式下关键字查找
基于ssm 包包商城系统
RedHat6之smb服务访问速度慢解决办法记录
The role of brackets' [] 'in the parameter writing method in MDN documents
JVM系列(4)——内存溢出(OOM)
JVM系列(3)——内存分配与回收策略
MySQL create Oracle exercise table
JDBC连接数据库
Package mall system based on SSM
PreparedStatement防止SQL注入
深入源码分析Servlet第一个程序
EditorConfig
poi导出excel,行相同数据自动合并单元格
框架解析2.源码-登录认证
2-软件设计原则