Install & Compatibility
Where this runs
tested against v5.4.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.10
✕ build_error
✓ 87.4s
py 3.11
✕ build_error
✓ 80.8s
py 3.12
✕ build_error
✓ 71.3s
py 3.13
✕ build_error
✓ 64.8s
py 3.9
✕ build_error
✕ timeout
5094MB installed
● package 5094MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Runner
✓ from rsl_rl.runners import OnPolicyRunner
✗ from rsl_rl.runner import OnPolicyRunner
Module is 'runners' (plural) since v5.0.0
PPO
✓ from rsl_rl.algorithms import PPO
✗ from rsl_rl.algos import PPO
Module is 'algorithms' (not 'algos') since v5.0.0
ActorCritic
✓ from rsl_rl.models import ActorCritic
Direct import; no common wrong import known
Basic training loop using OnPolicyRunner
import gym
import torch
from rsl_rl.runners import OnPolicyRunner
from rsl_rl.algorithms import PPO
from rsl_rl.modules import ActorCritic
# Initialize environment (example using gym)
env = gym.make('CartPole-v1')
# Setup model and algorithm
actor_critic = ActorCritic(
num_actor_obs=env.observation_space.shape[0],
num_critic_obs=env.observation_space.shape[0],
num_actions=env.action_space.shape[0],
).to('cuda')
algo = PPO(actor_critic=actor_critic, num_learning_epochs=5)
# Create runner and train
runner = OnPolicyRunner(env, algo, device='cuda')
runner.learn(num_learning_iterations=100, init_at_random_ep_len=True)
print('Training complete!')
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'rsl_rl.runner'
Module renamed from 'runner' to 'runners' in v5.0.0.
fixUse import 'from rsl_rl.runners import OnPolicyRunner'
AttributeError: module 'rsl_rl' has no attribute 'algorithms'
Old import path for PPO algorithm.
fixUse 'from rsl_rl.algorithms import PPO'
ValueError: The number of observations and actions do not match
Mismatch between environment observation/action spaces and ActorCritic dimensions.
fixEnsure num_actor_obs, num_critic_obs, num_actions match the environment's observation and action spaces.
Upgrade
Version history
5.4.1latest on PyPI · released Jun 4, 2026
Audit
Dependencies
torchrequiredCore dependency for neural networks and tensor operations