当前位置:网站首页>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
边栏推荐
- No.1.#_ 6 Navicat shortcuts
- Ptorch learning record (XIII): recurrent neural network
- Meta annotation (annotation of annotation)
- Pytorch learning record (XI): data enhancement, torchvision Explanation of various functions of transforms
- excel获取两列数据的差异数据
- 关于二叉树的遍历
- SQL基础:初识数据库与SQL-安装与基本介绍等—阿里云天池
- Navicate连接oracle(11g)时ORA:28547 Connection to server failed probable Oeacle Net admin error
- poi生成excel,插入图片
- Multithreading and high concurrency (1) -- basic knowledge of threads (implementation, common methods, state)
猜你喜欢

PyQy5学习(二):QMainWindow+QWidget+QLabel

Pytorch学习记录(十二):学习率衰减+正则化

Pytorch学习记录(十):数据预处理+Batch Normalization批处理(BN)

Navicate连接oracle(11g)时ORA:28547 Connection to server failed probable Oeacle Net admin error

Configure domestic image accelerator for yarn

opensips(1)——安装opensips详细流程

解决报错:ImportError: IProgress not found. Please update jupyter and ipywidgets

Conda 虚拟环境管理(创建、删除、克隆、重命名、导出和导入)

lambda表达式

2 - software design principles
随机推荐
JVM series (3) -- memory allocation and recycling strategy
DBCP使用
freemark中插入图片
Pytorch学习记录(十三):循环神经网络((Recurrent Neural Network)
多线程与高并发(2)——synchronized用法详解
POI generates excel and inserts pictures
Software architecture design - software architecture style
JSP语法及JSTL标签
Map object map get(key)
Pytorch学习记录(七):处理数据和训练模型的技巧
jdbc入门\获取数据库连接\使用PreparedStatement
线程的底部实现原理—静态代理模式
excel获取两列数据的差异数据
EditorConfig
mysql如何将存储的秒转换为日期
Pytorch学习记录(五):反向传播+基于梯度的优化器(SGD,Adagrad,RMSporp,Adam)
【华为机试】考试得分总数(如何处理答错的情况?回溯一次,代表答错一题)
PyEMD安装及简单使用
2.devops-sonar安装
Common protocols of OSI layer