Stand-alone Metashape Python module allows to integrate Metashape functionality to the custom scripts without a need of full application installation.
At first, ensure that you have Python 3.5, 3.6, 3.7 or 3.8 installed on your system. After that download the .whl package from the following page:
Then install Metashape module as a regular wheel package. The procedure may be slightly different depending on the OS used:
on Windows (64-bit):
python3.exe -m pip install Metashape-1.7.3-cp35.cp36.cp37.cp38-none-win_amd64.whl
python3 -m pip install Metashape-1.7.3-cp35.cp36.cp37.cp38-abi3-linux_x86_64.whl
python3 -m pip install Metashape-1.7.3-cp35.cp36.cp37.cp38-abi3-macosx_10_13_x86_64.whl
After installing stand-alone module, make sure that Metashape Pro application is activated on the same computer, where the module is supposed to be used. Alternatively, use the following command in Python IDLE console for the product activation, using your license key as an argument instead of the mock key in the example below):
The license file (.lic) should be put to the module directory, alternatively, the path to the license file can be defined by setting up agisoft_LICENSE environment variable.