Reinforcement Learning course project using PufferLib for training.
uv is a fast Python package manager. Install it using one of the following methods:
macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | shHomebrew (macOS):
brew install uvpip:
pip install uvAfter installation, restart your terminal or run source ~/.bashrc (or equivalent) to ensure uv is available.
If you're on Windows, we recommend using WSL for a better development experience.
1. Install WSL (if not already installed):
Open PowerShell as Administrator and run:
wsl --installThis installs WSL 2 with Ubuntu by default. Restart your computer when prompted.
2. Set up your WSL environment:
Open the Ubuntu terminal (search for "Ubuntu" in the Start menu) and run:
sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential git curl3. Install uv inside WSL:
curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.bashrc4. (Optional) GPU Support for PyTorch:
If you have an NVIDIA GPU and want to use CUDA:
- Install the latest NVIDIA drivers on Windows (not inside WSL)
- WSL 2 automatically provides GPU access—no need to install CUDA inside WSL separately
- Verify GPU access:
nvidia-smi
5. Clone and work from WSL:
Clone the repository to your WSL filesystem (not /mnt/c/...) for better performance:
cd ~
git clone git@github.com:Emerge-Lab/RL-Class-25.git
cd RL-Class-25
uv syncTips:
- Access WSL files from Windows Explorer:
\\wsl$\Ubuntu\home\<username> - Use VS Code with the "Remote - WSL" extension for seamless editing
- Clone this repository:
git clone git@github.com:Emerge-Lab/RL-Class-25.git
cd RL-Class-25- Install dependencies:
uv syncThis will create a virtual environment and install all dependencies including PufferLib.
Run commands using:
uv run python your_script.pyOr activate the virtual environment:
source .venv/bin/activate # macOS/Linux
# or
.venv\Scripts\activate # Windows