Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于gym版本 #9

Open
526766987 opened this issue Feb 28, 2024 · 1 comment
Open

关于gym版本 #9

526766987 opened this issue Feb 28, 2024 · 1 comment

Comments

@526766987
Copy link

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

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

@jerry800416
Copy link

jerry800416 commented May 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants