songwenas12 / fjsp-drl

Apache License 2.0
183 stars 52 forks source link

关于gym版本 #9

Open 526766987 opened 4 months ago

526766987 commented 4 months ago

gym版本过高会导致env加载报错,0.18.0用最新的pip是安装不上的。 可以尝试先请回退安装工具的版本,然后再安装旧版本的gym,具体方法见可以看这个帖子: https://blog.csdn.net/weixin_45386421/article/details/134892382

实测可以用此方法安装0.18.3,在0.18.3中项目可以正常运行。

jerry800416 commented 2 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:

Add deadsnakes repository

sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update

Install python

sudo apt-get install python3.8 sudo apt-get install python3.8-venv

Create virtualenv

python3.8 -m venv venv source ./venv/bin/activate

Test for python version

python # will return python3.8 pip install gym==0.18.0