Python offers a vast array of dependency packages for use. To simplify Python environment and dependency management in SuperMap iDesktopX, we have integrated the Conda package management system. This allows users to easily install/update dependencies and create/manage Python environments through visual interfaces.
Python Version
SuperMap iDesktopX comes pre-installed with Python 3.8, eliminating the need for additional installations. While Python has multiple versions available (primarily 2.x and 3.x), iDesktopX uses the more compatible 3.8 version. Users with other Python versions can manage and switch environments via MiniConda within iDesktopX. After switching environments, restart Python to activate the selected version. Note: Code execution is limited to one Python environment at a time.
Python Environment Management
The built-in package manager in SuperMap iDesktopX provides MiniConda functionality without exiting the application. Click the Python Environment Management button to access environment operations: add, create, delete, import, and export.
Create New Environment
In the Python Environment Management dialog, click Create New Environment. Specify the Python version, environment save path, and conda.exe location in the pop-up dialog, then click OK to create a new environment.
Add Existing Environment
In the Python Environment Management dialog, click Add Existing Environment. Provide paths to Python.exe and conda.exe in the pop-up dialog, then click OK to add the specified environment.
Remove Environment
Select the target environment in the Python Environment Management dialog list, then click Remove to delete it.
Create a New Environment from a Template
Click Create a New Environment from a Template, select a template file (*.yml). The system will automatically install dependencies recorded in the template file during environment creation, simplifying environment replication.
Export Template
Click Export Template to export the current environment configuration as a template file (*.yml). This allows easy replication of identical Python environments.
Restart/Terminate Python
Selecting an environment in the Python Environment Management dialog list automatically restarts Python. Manual control is available via Finish and Restart buttons.
Dependency Management
SuperMap iDesktopX utilizes Conda for dependency management, enabling easy installation of third-party Python packages into current environments. Installed packages can be accessed in Python scripts. The system provides viewing, searching, installing, updating, and uninstalling capabilities.

Conda installation is required for dependency management. We recommend obtaining Conda through AI Extension Package configuration.
View Installed Packages
Click Python Environment Management, select an environment from the dialog list to display installed packages with their current and latest versions. Click the Installed Packages button to view all third-party dependencies and additional libraries.
Install Packages
Click Add to open the package installation dialog. Search or browse for required packages, view their descriptions, versions, and publishers.
- Version: Installs the latest version by default. Select older versions from the Version dropdown and click Install.
- Repository Management: The default Anaconda.org repository may have slow download speeds. Users can add alternative repository addresses to access packages.
Update Packages
When new package versions become available, select updatable packages and click Update to upgrade to the latest version.
Delete
Uninstall packages by selecting them in the list and clicking Delete. Warning: Core dependencies in default environments are essential. Their removal may disable Python functionalities. If accidentally removed, create a new environment and re-add required packages.