ptan icon indicating copy to clipboard operation
ptan copied to clipboard

ptan cannot be used properly

Open Lyric233-QS opened this issue 6 months ago • 0 comments

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

Lyric233-QS avatar Aug 16 '24 03:08 Lyric233-QS