当前位置:网站首页>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
边栏推荐
- Record a project experience and technologies encountered in the project
- 多线程与高并发(1)——线程的基本知识(实现,常用方法,状态)
- JSP语法及JSTL标签
- 开发环境 EAS登录 license 许可修改
- PHP处理json_decode()解析JSON.stringify
- 线性规划问题中可行解,基本解和基本可行解有什么区别?
- mysql实现主从复制/主从同步
- Pytorch Learning record (XIII): Recurrent Neural Network
- Pytorch学习记录(九):Pytorch中卷积神经网络
- 创建企业邮箱账户命令
猜你喜欢
随机推荐
Solid contract DoS attack
金蝶EAS“总账”系统召唤“反过账”按钮
Anaconda
ES6之解构函数
尚硅谷 p290 多态性练习
mysql-触发器、存储过程、存储函数
Multithreading and high concurrency (1) -- basic knowledge of threads (implementation, common methods, state)
umi官网yarn create @umijs/umi-app 报错:文件名、目录名或卷标语法不正确
poi导出excel,行相同数据自动合并单元格
RedHat6之smb服务访问速度慢解决办法记录
MySQL query uses \ g, column to row
io. lettuce. core. RedisCommandExecutionException: ERR wrong number of arguments for ‘auth‘ command
框架解析1.系统架构简介
The role of brackets' [] 'in the parameter writing method in MDN documents
线程的底部实现原理—静态代理模式
JSP语法及JSTL标签
Pilotage growth · ingenuity empowerment -- yonmaster developer training and pilotage plan is fully launched
Ptorch learning record (XIII): recurrent neural network
rsync实现文件服务器备份
PyQy5学习(二):QMainWindow+QWidget+QLabel








