- Install conda-pack on the source machine by running below command in terminal.
pip install conda-pack
- 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
- Install conda on the target machine.
./Anaconda3-2019.10-Linux-x86_64.sh
- Unpack the environment file on the target machine
mkdir -p test
tar -xzf test.tar.gz -C test
- Activate the environment
source test/bin/activate
- Cleanup prefixes from in the active environment
conda-unpack
- Enter 'python' to test the envirnment.
python
网友评论