Requires Python 3.10 or newer (developed on 3.12) and git.
git clone https://github.com/purdue-arc/Rocket-League-Training-Environment.git
cd Rocket-League-Training-EnvironmentmacOS / Linux:
python3.12 -m venv .rlSimEnv
source .rlSimEnv/bin/activateCheck that the venv's Python is the one running:
which python # Windows: where python
python --version # must be 3.10+which python must point inside .rlSimEnv. Activate the venv again in every new terminal.
python -m pip install --upgrade pip
pip install -r requirements.lock.txt
pip install -e . --no-depsrequirements.lock.txtinstalls the exact versions the project was tested with.pip install -e .installscarSoccerin editable mode: changes to the source take effect without reinstalling.--no-depsstops pip from re-resolving packages the lock file already pinned.
python -c "import carSoccer, mujoco, torch, tensordict; print('ok')"
pytest -v- "Defaulting to user installation because normal site-packages is not writeable": the venv is not active. Re-run the activate command and check
which python. - Conda users: run
conda deactivatefirst, orconda config --set auto_activate_base false, so conda's Python doesn't shadow the venv's. Ifpython3.12resolves to Anaconda, create the venv with Homebrew's Python by full path:"$(brew --prefix python@3.12)/bin/python3.12" -m venv .rlSimEnv. - Moved or renamed the project folder? Venvs can't be moved. Delete
.rlSimEnvand repeat steps 2–3. - A pinned version fails to install on your OS (the lock file was generated on macOS): install from the project's declared dependencies instead with
pip install -e ".[dev]".
pip install -e ".[dev]"pip freeze --exclude-editable > requirements.lock.txt- Commit
requirements.lock.txt.