80x
005737
2025-09-15

Problems Installing dlubal.api via install_packages Function

The installation of the dlubal.api package via the install_packages function has failed. What steps can I take to resolve this?


Answer:

Installation issues can be caused by corruption of installed packages, versioning discrepancies, or conflicts with another Python installation on your system. Please follow these troubleshooting steps in order.

Step 1

Clean the Embedded Python Environment

The first step is to clean the site-packages directory of your embedded Python environment.

  1. Navigate to your application's installation directory.
  2. Open the bin folder, then proceed to Lib\site-packages.
  3. Delete all contents of the site-packages folder.
  4. Restart the application and try installing the dlubal.api package again using the install_packages function.

Step 2

Resolve Conflicts with Microsoft Store Python

If the first step does not resolve the issue, the problem could be caused by a conflict with another Python installation on your system. The Microsoft Store version of Python is known to introduce several unique behaviors that can interfere with embedded environments, leading to unpredictable behavior and installation failures.

To eliminate this conflict, we recommend using the official Python distribution from python.org.

  1. Uninstall the Microsoft Store Python:
    1. The details of this step will depend on the installed Windows version.
  2. Install Python from python.org:
    1. Visit the official Python downloads page.
    2. Download the preferred release for Windows.
  3. Restart your computer to ensure that all environment variable changes have been applied.
  4. Try installing the dlubal.api package again using the install_packages function.

Author

Mr. Milrath provides technical support to our customers.



;