Update requirement list and add quotes around pip install for macos users (#1001)

This commit is contained in:
Mark Towers
2024-04-06 15:44:09 +01:00
committed by GitHub
parent 0fe94efa26
commit 2869279232
29 changed files with 55 additions and 62 deletions

View File

@@ -26,7 +26,7 @@ try:
from jax import dlpack as jax_dlpack
except ImportError:
raise DependencyNotInstalled(
"Jax is not installed therefore cannot call `torch_to_jax`, run `pip install gymnasium[jax]`"
'Jax is not installed therefore cannot call `torch_to_jax`, run `pip install "gymnasium[jax]"`'
)
try:
@@ -36,7 +36,7 @@ try:
Device = Union[str, torch.device]
except ImportError:
raise DependencyNotInstalled(
"Torch is not installed therefore cannot call `torch_to_jax`, run `pip install torch`"
'Torch is not installed therefore cannot call `torch_to_jax`, run `pip install "gymnasium[torch]"`'
)