HALCON/Python packages are pip compatible.
Use the following command to add HALCON/Python to your project:
pip install mvtec-halcon==21050
While PEP 440 and by extension PyPI does not require SemVer, HALCON/Python and other language interface packages follow a SemVer approach to avoid unnecessary conflicts and tooling issues. However, HALCON versions are not SemVer compatible, so Python packages receive a SemVer-compatible version by combining the major, minor, and revision into a new major, e.g.:
HALCON/Python is not a self-contained package but an interface to the native HALCON library. Therefore, the package version used by your project has to match the installed HALCON version exactly.
Even for maintenance releases, which are backwards compatible at application level, mixing of binaries from different releases is not recommended because the internal communication between HALCON/Python and the native HALCON library is not guaranteed to be always compatible. Therefore, the revision of the HALCON release is also part of the SemVer major version. The SemVer minor and patch version are reserved for fully backwards-compatible intermediate releases of the package itself. See section “Using a Newer HALCON/Python Release” for updating dependencies.
To use the packages offline, download them from the PyPI website.