David Satorres · Mar 1, 2022

Install python libraries in a different directory

Hello all,

I've seen that to install any python library we just need to call this:

C:\InterSystems\IRIS\bin>irispip install --target C:\InterSystems\IRIS\mgr\python geopy

Is there a way to install the libraries in a different directory and set up the system to load the python from that other directory?

Product version: IRIS 2021.2
$ZV: IRIS for Windows (x86-64) 2021.2 (Build 651U) Mon Jan 31 2022 17:39:05 EST
0 174
Discussion (1)1
Log in or sign up to continue

Well, sure.

When you execute python script at the beginning add this:

import sys

Or set PYTHONPATH variable (requires IRIS restart).