Agisoft Metashape
Agisoft Metashape => Python and Java API => Topic started by: forumname on March 07, 2022, 06:31:50 PM
-
I am attempting to follow the instructions here (https://agisoft.freshdesk.com/support/solutions/articles/31000136860-how-to-install-external-python-module-to-metashape-professional-package) for Linux.
I navigate to the directory and execute the directed command, but I get an error that the python 3.8 shared objected can't be found
>./metashape-pro/python/bin/python3.8 -m pip install numpy cv2 shutil
./metashape-pro/python/bin/python3.8: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
I also tried the libssl install as directed, without success.
I am working in a conda virtual environment, but that doesn't seem to make a difference.
-
Hi, this worked for me:
LD_LIBRARY_PATH=metashape-pro/python/lib/ metashape-pro/python/bin/python3.8 -m pip install numpy
-
Can confirm this works on Ubuntu 21.10. Successfully installed numpy and opencv-python.