美文网首页Python深度学习
005 Conda environment migration

005 Conda environment migration

作者: panorama | 来源:发表于2020-01-14 16:12 被阅读0次
  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

相关文章

网友评论

    本文标题:005 Conda environment migration

    本文链接:https://www.haomeiwen.com/subject/bfraactx.html