Procedure for installing python libraries from source

Where are you running this, and is the Python binary and test script located on the same machine?

That code worked fine for me in the Designer script console with some changes for my environment:

from java.lang import ProcessBuilder, String

pb = ProcessBuilder([r"python", r"/Users/kevin/Desktop/test.py"])

process = pb.start()

output = String(process.getInputStream().readAllBytes())

print output

1 Like