I'm having trouble installing external python modules to Metashape and hoping someone can provide some insight. I've read the Metashape manual and Python addendum and have tried the following:
1.
$.../metashape-pro/python/bin$ ./python3.5 -m pip install Pillow
Requirement already satisfied: Pillow in /usr/local/lib/python3.7/dist-packages (6.0.0)
(similar results for module Image and module exifread)
Next, I start Metashape and attempt to run my script by clicking tools->run script (script starts with the following lines and errors on line 2):
import Metashape
from PIL import Image
import PIL.ExifTags
and get the message box "No module named 'PIL'"
2. I installed libssl 0.9.8 (as shown on
https://agisoft.freshdesk.com/support/solutions/articles/31000136860-how-to-install-external-python-module-to-metashape-professional-package)
3. Tried #1 again, but same result.
4. One oddity, when I type:
$.../metashape-pro/python/bin$ ./python3.5
Python 3.7.3 (default, Apr 3 2019, 05:39:12)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Notice that it runs the default python install on my machine (3.7.3).
5.
$.../metashape-pro/python/bin$ ./pip install Pillow
bash: ./pip: /opt/python3.5/bin/python3.5m: bad interpreter: No such file or directory
6.
$uname -a
Linux <computername> 5.0.0-15-generic #16-Ubuntu SMP Mon May 6 17:41:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Any ideas? (Thanks in advance)