This readme contains instructions for both Linux and Windows installation. Windows installation instructions are located after Linux installation instructions.
To setup the environment follow these steps:
- Install CPython. The code is tested with Python version 3.10.10. We do not recommend using Conda package manager.
Under Linux, run the following commands:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.10 python3.10-dev python3.10-venv
sudo apt install curl
sudo curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
- Get the code from repo:
sudo apt install git-all
Run git clone https://github.com/levitation-opensource/Universal-Values-Assistant-Simulation.git
Run cd Universal-Values-Assistant-Simulation
- Create a virtual python environment:
python3.10 -m venv_UVAS
source venv_UVAS/bin/activate
- Install dependencies by running:
pip install -r requirements.txt
- Install CPython from python.org. The code is tested with Python version 3.10.10. We do not recommend using Conda package manager.
You can download the latest installer from https://www.python.org/downloads/release/python-31010/ or if you want to download a newer 3.10.x version then from https://github.com/adang1345/PythonWindows
- Get the code from repo:
- Install Git from https://gitforwindows.org/
- Open command prompt and navigate top the folder you want to use for repo
- Run
git clone https://github.com/levitation-opensource/Universal-Values-Assistant-Simulation.git
- Run
cd Universal-Values-Assistant-Simulation
-
Create a virtual python environment by running:
3.1. To activate VirtualEnv with Python 3.10:
virtualenv -p python3.10 venv_UVAS
(or if you want to use your default Python version:
python -m venv venv_UVAS
)
3.2.venv_UVAS\scripts\activate
-
Install dependencies by running:
pip install -r requirements.txt
Choose model in config.ini
.
Set environment variable:
OPENAI_API_KEY
or ANTHROPIC_API_KEY
.
Run
python Simulation.py
This project is licensed under the Mozilla Public License 2.0. You are free to use, modify, and distribute this code under the terms of this license.
For more details, see the LICENSE.txt file.