the-anylogic-company / AnyLogic-Pypeline

A custom AnyLogic library for running Python inside an AnyLogic model (Java)
https://github.com/the-anylogic-company/AnyLogic-Pypeline/wiki
MIT License
106 stars 26 forks source link

Anaconda or pip environment support #3

Closed HgmerFipsi closed 3 years ago

HgmerFipsi commented 3 years ago

The current pypeline libary version allows me to select a python interpreter using a custom path. However, when using virtual environments it is required to activate the environment first.

Hence, I am wondering wether a workaround exists to activate python environments such as conda or pip before executing the modell in AnyLogic? Thank you in advance !

t-wolfeadam commented 3 years ago

Hence, I am wondering wether a workaround exists to activate python environments such as conda or pip before executing the modell in AnyLogic?

No workarounds needed - the latest version (1.4) should now utilize your conda/pipenv libraries automatically (when you point it to a relevant python executable)!