How to add pip packages/Ruby gems to a OpenStudio workflow (.osw)
Hello unmet hours community,
I am in the process of writing some python measures which are intended to work in a OpenStudio workflow (.osw), I came across this measure from PNNL
the measure uses the pip package copper by importing it in measure.rb like so:
import copper as cp
import typing
However by default the Openstudio cli the command
openstudio run --workflow
does not come with this pip package preloaded, so how can I load pip packages/ or Ruby gems into the OpenStudio cli?
Thank you!
---- EDIT and Solution
After trying the suggestion below by Jeremy
openstudio --python_path ~/.pyenv/versions/3.12.3/bin/ run --workflow simple-python-measure.osw
I am able digging deeper, just passing python home to run the .osw with python however the site_packages (pip packages) directory where a pip package is contained worked for python are not there even though they are there when I just run them with python
When I try to set Python Home however I then get this error, I am still digging into this
me