简体   繁体   English

如何将 anaconda 环境克隆到另一台 Windows 10 PC?

[英]How to clone anaconda environment to another Windows 10 PC?

How to clone anaconda environment to another Windows 10 PC?如何将 anaconda 环境克隆到另一台 Windows 10 PC? Or maybe how to export all the packages then I will install these packages in another PC?或者也许如何导出所有包然后我将这些包安装在另一台 PC 上?

I exported a yml file like this:我导出了一个这样的 yml 文件:

conda env export > environment.yml

How to create a new environment from this yml file?如何从这个 yml 文件创建一个新环境? Where do I save this yml file when creating a new enviroment?创建新环境时,这个 yml 文件应该保存在哪里?

The most recommended way is to create the environment.yml file, manually .最推荐的方法是手动创建 environment.yml 文件 and this is quite easy!这很容易!

Have a look at the conda official documentation for manually creating the environment file.查看手动创建环境文件的 conda 官方文档

and then you can easily create the above environment on other window pc by following these instructions.然后您可以按照这些说明在其他window pc上轻松创建上述环境

Hopes that help!希望有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM