PROBLEM
When attempting to use Python in ArcGIS Pro using a cloned environment, the initialization process fails and returns the following error messages in the Python window and Python notebook:
Error: Failed to Initialize Python Interpreter
Error: Failed to create notebook server
In addition, running the Python Command Prompt returns the following error message:
Error: CMD does not support UNC paths as current directories.
This issue occurs when the cloned Python environment is located on a network location with Universal Naming Convention (UNC) paths. By design, Python Package Manager is unable to read Python environments with UNC paths. The image below shows an example of a cloned Python environment located on a network location with UNC paths in the Environment Manager dialog box.
To solve this issue, follow the steps provided below to create a symbolic link to the directory of the cloned Python environment with a Universal Naming Convention (UNC) path and add the symbolic link in ArcGIS Pro.
mklink /D <local_folder_location>\<file_name> <network_folder_location>
Note: Enclose the folder name in double quotes (" ") if the folder name contains spaces. For example, "C/DESKTOP/ENV TEST 1".
Get help from ArcGIS experts
Download the Esri Support App