agentos-project / agentos

The Python Component System (PCS) is an API and CLI for building, running, and sharing Python code. AgentOS is a set of libraries built on top of PCS that make it easy to build, run, and share agents that use Reinforcement Learning.
https://agentos.org
Apache License 2.0
13 stars 4 forks source link

Support conda virtual environments #244

Open nickjalbert opened 2 years ago

nickjalbert commented 2 years ago

Virtual environment management (which was merged in #241) should also support conda. Currently we only support virtualenv.

This is a must-have for running some of our example agents on Apple Silicon currently, since pip install conda is currently broken on Apple Silicon and the best known workaround is use conda install scipy, and thus conda support being a must-have. For a little more background on getting RLlib working on Apple Silicon, see #326. This also seems to be true now of SB3.

andyk commented 2 years ago

We might be able to re-use some of MLflow's conda wrapping Python code: https://github.com/mlflow/mlflow/blob/master/mlflow/utils/conda.py.

MLflow also has a python wrapper around virtualenv pyenv`: https://github.com/mlflow/mlflow/blob/master/mlflow/utils/virtualenv.py