1. Install the cloning packaging tool
conda install -c conda-forge conda-pack
2. Clone into compressed package
conda pack -n 环境名称 -o 环境名称.tar.gz
3. Find the environment name.tar.gz in C:/Users/Current Username and move it to Anaconda3/envs/ on the new computer to decompress it [it can be used normally here]
4. Create an environment using the cloned environment [You can use this environment normally after this step]
conda create -n 新环境名 --clone 已存在的环境名
Another: You can also export to yaml and then use the yaml installation package during installation
When exporting:
conda env export > environment.yaml
When importing:
conda env create -f environment.yaml