Open 526766987 opened 4 months ago
Another option is to install Python 3.8 (assuming you are currently using a newer version) and then directly install gym==0.18.0. The specific steps are as follows:
sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update
sudo apt-get install python3.8 sudo apt-get install python3.8-venv
python3.8 -m venv venv source ./venv/bin/activate
python # will return python3.8 pip install gym==0.18.0
gym版本过高会导致env加载报错,0.18.0用最新的pip是安装不上的。 可以尝试先请回退安装工具的版本,然后再安装旧版本的gym,具体方法见可以看这个帖子: https://blog.csdn.net/weixin_45386421/article/details/134892382
实测可以用此方法安装0.18.3,在0.18.3中项目可以正常运行。