HOW TO

Clone a Python environment offline by forcing installation from local environment files

Last Published: November 7, 2023

Summary

Users are sometimes unable to clone Python environments because of cloning restrictions, antivirus software, or IT protocols blocking requests made to the Anaconda website when downloading and installing the packages. This article describes the workflow to clone a Python environment offline using the environment files transferred or downloaded from other sources, for example, other machines.

Procedure

  1. In the Windows search box, type python, right-click Python Command Prompt, and click Run as administrator.
  2. Copy and paste the following command before pressing Enter.
    1. Create a new environment and specify the location of the downloaded packages using the --offline and --channel flags.
    2. Replace new_env_name with the desired name for the new environment, and path_to_dwd_packages with the path to the directory containing the downloaded packages. In this example, 'offlinetest' is used as the name for the new environment.
conda create --clone arcgispro-py3 --name new_env_name --offline --channel file://"path_to_dwd_packages"
The image of the Python environment being cloned offline by forcing installation from downloaded environment files.

The image below shows the newly cloned Python environment named 'offlinetest' available in ArcGIS Pro.

The image shows the newly cloned Python environment named 'offlinetest' is available in ArcGIS Pro.

Article ID: 000030572

Software:
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 0
  • ArcGIS Pro 3 2

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options