Forum

Author Topic: Install python libraries  (Read 4990 times)

WickedShell

  • Newbie
  • *
  • Posts: 17
    • View Profile
Install python libraries
« on: May 15, 2014, 04:41:15 AM »
I'd like to install several python libraries on top of the standard agisoft libraries, how would I go about doing this? (The libraries would typically be installed with setup.py)

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: Install python libraries
« Reply #1 on: May 23, 2014, 01:41:10 PM »
Hello WickedShell,

PhotoScan doesn't use Python installed on the system, as it comes with it's own Python. So you need to install external modules to the following folder:
C:\Program Files\Agisoft\PhotoScan Pro\python\Lib\site-packages

Then you need to use import modulename command from the Console pane or script.
Best regards,
Alexey Pasumansky,
Agisoft LLC

WickedShell

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Install python libraries
« Reply #2 on: May 25, 2014, 05:38:53 AM »
For python libraries that heavily leverage setup.py is there any way to run them in that configuration, or  simply try and force it to work by moving in the folder from site-packages?

Thanks for your time.

saduka

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Install python libraries
« Reply #3 on: April 08, 2019, 02:42:17 PM »
cool, that works, thanks a lot 8)