Coding environment with Cameo Systems Modeler

Hi all, I am trying to figure out a way to connect an environment where I can run python code called by Cameo Systems Modeler. I am able to use a constraint block to call external code. However, certain libraries or modules such as yaml will throw an error. Is there a way to connect environments like Conda to Cameo. I am new to Cameo.