1. https://stackoverflow.com/questions/7438681/how-to-duplicate-virtualenv conda create --name myclone --clone myenv https://docs.conda.io/projects/conda/en/latest/commands/create.html conda create -n tf115 --clone /state/partition1/c23/sdd/anaconda3/envs/caoyao 2. https://datascience.stackexchange.com/questions/24093/how-to-clone-python-working-environment-on-another-machine conda install -c conda-forge conda-pack # Pack environment myenv into myclone.tgz conda pack -n myenv -o myclone.tgz # Pack environment located at an explicit path into my_env.tar.gz $ conda pack -p /explicit/path/to/my_env # Unpack environment into directory `my_env` $ cd ~/anaconda/envs $ mkdir -p myclone $ tar -xzf myclone.tgz -C myclone # Optinal # Use Python without activating or fixing the prefixes. Most Python # libraries will work fine, but things that require prefix cleanups # will fail. $ ./myclone/bin/python # Optional # Activate the environment. This adds `myclone/bin` to your path $ source myclone/bin/activate # Optional # Run Python from in the environment (myclone) $ python # Cleanup prefixes from in the active environment. # Note that this command can also be run without activating the environment # as long as some version of Python is already installed on the machine. (myclone) $ conda-unpack 3. https://prasaz.medium.com/exporting-python-virtual-environments-7a135f47b2da Generate the virtual environment using the wheel files Prerequisites: Originating PC/Server and the destination pc/server both must have the same python versions. Step 1 — Generate package list from the source environment Generate file contains the list of packages in the current environment. pip freeze -l > packages.txt Step 2 — Generate wheel files from the source environment. Generate wheel files for all the installed packages in the source environment using the packages.txt pip wheel -w wheels_folder -r packages.txt Step 3- Create the new virtual environment Copy the folder contains the generated wheels files to the destination. Once done, create new virtual environment using the venv command and activate it. Create requirements.txt file with all the wheel files. then run pip install -r requirements.txt to get them all install at once pip install -r requirements.txt Known issues Failed building wheel for X while generating wheel files In order to generate wheel files successfully wheel package is required. This is being used to regenerate the wheel files when the package is required to rebuild the wheel files due to some error. pip install wheel 4. https://stackoverflow.com/questions/41274007/anaconda-export-environment-file The easiest way to save the packages from an environment to be installed in another computer is: conda list -e > req.txt then you can install the environment using conda create -n --file req.txt