mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-01 14:10:30 +00:00
Update the jumpy error to specify the pip install is jax-jumpy (#255)
This commit is contained in:
@@ -8,7 +8,11 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|
||||||
import jumpy as jp
|
|
||||||
|
try:
|
||||||
|
import jumpy as jp
|
||||||
|
except ImportError as e:
|
||||||
|
raise ImportError("Jumpy is not installed, run `pip install jax-jumpy`") from e
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
import gymnasium as gym
|
import gymnasium as gym
|
||||||
|
@@ -16,7 +16,11 @@ from __future__ import annotations
|
|||||||
from typing import Any, Callable, Sequence
|
from typing import Any, Callable, Sequence
|
||||||
from typing_extensions import Final
|
from typing_extensions import Final
|
||||||
|
|
||||||
import jumpy as jp
|
|
||||||
|
try:
|
||||||
|
import jumpy as jp
|
||||||
|
except ImportError as e:
|
||||||
|
raise ImportError("Jumpy is not installed, run `pip install jax-jumpy`") from e
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
import gymnasium as gym
|
import gymnasium as gym
|
||||||
|
@@ -11,7 +11,11 @@ from collections import deque
|
|||||||
from typing import Any, SupportsFloat
|
from typing import Any, SupportsFloat
|
||||||
from typing_extensions import Final
|
from typing_extensions import Final
|
||||||
|
|
||||||
import jumpy as jp
|
|
||||||
|
try:
|
||||||
|
import jumpy as jp
|
||||||
|
except ImportError as e:
|
||||||
|
raise ImportError("Jumpy is not installed, run `pip install jax-jumpy`") from e
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
import gymnasium as gym
|
import gymnasium as gym
|
||||||
|
Reference in New Issue
Block a user