Forum

Author Topic: can't find shared object file when installing external python modules  (Read 780 times)

forumname

  • Newbie
  • *
  • Posts: 19
    • View Profile
I am attempting to follow the instructions here 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.

PolarNick

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: can't find shared object file when installing external python modules
« Reply #1 on: March 09, 2022, 02:30:37 PM »
Hi, this worked for me:

LD_LIBRARY_PATH=metashape-pro/python/lib/ metashape-pro/python/bin/python3.8 -m pip install numpy

forumname

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: can't find shared object file when installing external python modules
« Reply #2 on: March 10, 2022, 11:50:49 PM »
Can confirm this works on Ubuntu 21.10. Successfully installed numpy and opencv-python.