Skip to content

gym 0.19.0 conflicts with Python 3.10? #34

@mqchenner

Description

@mqchenner

I'm trying to set up maze planning and can't seem to install gym 0.19.0 with Python 3.10. I've already installed requirements.txt and mujoco210.

Output from pip install -r extra_requirementx.txt:

ERROR: Could not find a version that satisfies the requirement gym==0.19.0 (from versions: 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.2.10, 0.2.11, 0.2.12, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.8, 0.4.9, 0.4.10, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 0.5.6, 0.5.7, 0.6.0, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.8.0.dev0, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5, 0.10.8, 0.10.9, 0.10.11, 0.11.0, 0.12.0, 0.12.1, 0.12.4, 0.12.5, 0.12.6, 0.13.0, 0.13.1, 0.14.0, 0.15.3, 0.15.4, 0.15.6, 0.15.7, 0.16.0, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.18.0, 0.18.3, 0.19.0, 0.20.0, 0.21.0, 0.22.0, 0.23.0, 0.23.1, 0.24.0, 0.24.1, 0.25.0, 0.25.1, 0.25.2, 0.26.0, 0.26.1, 0.26.2)
ERROR: No matching distribution found for gym==0.19.0

Output from conda install "gym==0.19.0" -c conda-forge (using mamba):

Channels:

  • conda-forge
  • defaults
    Platform: linux-64
    Collecting package metadata (repodata.json): done
    Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:

  • package gym-0.19.0-py38he5a9106_0 requires python >=3.8,<3.9.0a0, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ gym ==0.19.0 * is installable with the potential options
│ ├─ gym 0.19.0 would require
│ │ └─ python >=3.6,<3.7.0a0 *, which can be installed;
│ ├─ gym 0.19.0 would require
│ │ └─ python >=3.7,<3.8.0a0 *, which can be installed;
│ ├─ gym 0.19.0 would require
│ │ └─ python >=3.8,<3.9.0a0 *, which can be installed;
│ └─ gym 0.19.0 would require
│ └─ python >=3.9,<3.10.0a0 *, which can be installed;
└─ pin on python =3.10 * is not installable because it requires
└─ python =3.10 *, which conflicts with any installable versions previously reported.

Pins seem to be involved in the conflict. Currently pinned specs:

  • python=3.10

Am I missing something? The PyPI page for gym 0.19.0 also doesn't list Python 3.10; seems like 3.10 support was added in gym 0.22.0.

I ended up getting the code to work, but with gym 0.21.0. (conda env yaml here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions