A deep reinforcement learning tutorial based on ElegantRL
conda create -n rl python=3.10
conda activate rl
pip install torch==1.13.0+cu116 torchvision==0.14.0+cu116 torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cu116
pip install gymnasium[all]==0.29.1
若网络故障,可以添加其他的安装原进行安装
pip install gymnasium[all]==0.29.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
如果这里无论如何都是出box2d的编译错误,则先安装这个(参考 https://stackoverflow.com/questions/76222239/pip-install-gymnasiumbox2d-not-working-on-google-colab)
pip install swig
cd dqn
python dqn.py