005 Conda environment migration 环境迁移

  1. Install conda-pack on the source machine by running below command in terminal.

pip install conda-pack

  1. Pack the environment on the old machine by running below command in terminal. You'll get file like 'test.tar.gz'.

conda pack --name test --ignore-editable-packages

  1. Install conda on the target machine.

./Anaconda3-2019.10-Linux-x86_64.sh

  1. Unpack the environment file on the target machine

mkdir -p test
tar -xzf test.tar.gz -C test

  1. Activate the environment

source test/bin/activate

  1. Cleanup prefixes from in the active environment

conda-unpack

  1. Enter 'python' to test the envirnment.

python

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 7,943评论 0 0
  • 转载于 宁广涵的博客 My intern at TCL is over soon. Before going ba...
    angerskon阅读 4,643评论 0 2
  • 最近有句话时常回荡在耳边:“小时候快乐很简单,长大了简单很快乐。” 是啊,怎么小时候能让我想到就开心,看到就咧嘴笑...
    栗南阅读 3,459评论 1 2
  • 你就这样 突兀地来到我眼前 小小的粉白花朵 在细长绿叶和茎的举起中 那意外的惊喜 如鸟雀喳喳,突然飞过枝头 给心的...
    花雨凤飞H阅读 2,635评论 8 11
  • 周三对我来说是忙碌的,白天的工作排的满满的,晚上还得陪着俩宝学习《疯狂科学》的课程! 一下班,顺道拉着一名怀...
    优优泽泽阅读 2,720评论 1 0