Install pyenv (Docs)
curl -fsSL https://pyenv.run | bash
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init - bash)"' >> ~/.bashrc
Install pyenv-virtualenv (Docs)
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
Reload your shell
exec $SHELL
Install Python 3.12.8
pyenv install 3.12.8
Create a virtual environment
cd covas-next-aiserver # if you're not already in this directory
pyenv virtualenv 3.12.8 covas-next-aiserver
pyenv local covas-next-aiserver
Install dependencies
pip install -r requirements.txt
Run the server
python src/AIServer.py