Skip to content

About

Name pending for the repo it has no aura.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Rocket-League-Training-Environment

Installation

Requires Python 3.10 or newer (developed on 3.12) and git.

1. Clone

git clone https://github.com/purdue-arc/Rocket-League-Training-Environment.git
cd Rocket-League-Training-Environment

2. Create and activate a virtual environment

macOS / Linux:

python3.12 -m venv .rlSimEnv
source .rlSimEnv/bin/activate

Check 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.

3. Install dependencies and the package

python -m pip install --upgrade pip
pip install -r requirements.lock.txt
pip install -e . --no-deps
  • requirements.lock.txt installs the exact versions the project was tested with.
  • pip install -e . installs carSoccer in editable mode: changes to the source take effect without reinstalling.
  • --no-deps stops pip from re-resolving packages the lock file already pinned.

4. Verify

python -c "import carSoccer, mujoco, torch, tensordict; print('ok')"
pytest -v

Troubleshooting

  • "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 deactivate first, or conda config --set auto_activate_base false, so conda's Python doesn't shadow the venv's. If python3.12 resolves 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 .rlSimEnv and 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]".

Maintainers: adding a dependency

  1. pip install -e ".[dev]"
  2. pip freeze --exclude-editable > requirements.lock.txt
  3. Commit requirements.lock.txt.

About

Name pending for the repo it has no aura.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages