danijar / dreamerv3

Mastering Diverse Domains through World Models
https://danijar.com/dreamerv3
MIT License
1.28k stars 219 forks source link

error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. #79

Open tan054 opened 1 year ago

tan054 commented 1 year ago

I am trying to install dreamerv3 via pip

getting the following error: Collecting dreamerv3 Using cached dreamerv3-1.5.0.tar.gz (83 kB) Preparing metadata (setup.py) ... done Collecting cloudpickle (from dreamerv3) Using cached cloudpickle-2.2.1-py3-none-any.whl (25 kB) Collecting crafter (from dreamerv3) Using cached crafter-1.8.1.tar.gz (105 kB) Preparing metadata (setup.py) ... done Collecting gym==0.19.0 (from dreamerv3) Using cached gym-0.19.0.tar.gz (1.6 MB) Preparing metadata (setup.py) ... error **error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [1 lines of output] error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.**

marianophielipp commented 1 year ago

Check this (https://github.com/openai/gym/issues/3202) Many options solved the problem.

masonhargrave commented 1 year ago

requirements.py should have wheel==0.38.4 added to it in order to fix this if we must stick with gym 0.19.0 (which is to my understanding not maintained by OpenAI anymore)

catid commented 8 months ago

This fixed it for me: pip install setuptools==66 wheel==0.38.4 And pip install -U "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html Then the instructions in the README work.