You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello,
I'm a reinforcement learning novice, recently I'm studying your Deep Reinforcement Learning in Practice 2nd Edition, in the chapter 7 part, I need to use ptan, I install the tutorial on gitub, and I use pip install ptan in the anaconda environment, and I successfully install ptan==0.8, and when I import ptan in a python file, it reports the error :
file “ptan\agent.py”,line 14,in States = tt.List[np.ndarray] | np.ndarray TypeError: unsupported operand type(s) for |: '_GenericAlias' and 'type'
My system configuration environment is exactly as requested in your requirements.txt.
gymnasium[atari]>=0.29.0
gymnasium[classic-control]>=0.29.0
moviepy==1.0.3
numpy==1.26.3
opencv-python==4.9.0.80
torch==2.3.1
torchvision==0.18.1
pytorch-ignite==0.4.13
stable-baselines3==2.2.1
pyarrow==15.0.0
The text was updated successfully, but these errors were encountered:
hello,
I'm a reinforcement learning novice, recently I'm studying your Deep Reinforcement Learning in Practice 2nd Edition, in the chapter 7 part, I need to use ptan, I install the tutorial on gitub, and I use pip install ptan in the anaconda environment, and I successfully install ptan==0.8, and when I import ptan in a python file, it reports the error :
file “ptan\agent.py”,line 14,in States = tt.List[np.ndarray] | np.ndarray TypeError: unsupported operand type(s) for |: '_GenericAlias' and 'type'
My system configuration environment is exactly as requested in your requirements.txt.
gymnasium[atari]>=0.29.0
gymnasium[classic-control]>=0.29.0
moviepy==1.0.3
numpy==1.26.3
opencv-python==4.9.0.80
torch==2.3.1
torchvision==0.18.1
pytorch-ignite==0.4.13
stable-baselines3==2.2.1
pyarrow==15.0.0
The text was updated successfully, but these errors were encountered: