google-deepmind / mujoco

Multi-Joint dynamics with Contact. A general purpose physics simulator.
https://mujoco.org
Apache License 2.0
8.3k stars 836 forks source link

differentiable physics tutorial missing module brax #1722

Closed fanminshi closed 5 months ago

fanminshi commented 6 months ago

When I run the Imports and installations section of differentiable physics tutorial I am getting the following import error

ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-10-b1c0dcecae40>](https://localhost:8080/#) in <cell line: 14>()
     12 config.update("jax_enable_x64", True)
     13 config.update('jax_default_matmul_precision', jax.lax.Precision.HIGH)
---> 14 from brax import math
     15 
     16 # Sim

ModuleNotFoundError: No module named 'brax'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

I think the noteboot forgot to provide instruction to install brax

!pip install brax
fanminshi commented 5 months ago

I will submit a fix for this.