minerllabs / minerl

MineRL Competition for Sample Efficient Reinforcement Learning - Python Package
http://minerl.io/docs/
Other
707 stars 153 forks source link

problem with gym while installing minerl #788

Open 1Sep7 opened 2 months ago

1Sep7 commented 2 months ago

so i decided to try minerl and before even starting i found this problem while doing "pip install minerl"

Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] C:\Users\Utente\AppData\Roaming\Python\Python311\site-packages\setuptools_distutils\dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg) 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.

Miffyli commented 1 month ago

Hey. Installing from pip does not work with newer Python versions sadly. You need to install MineRL from the github with the settings in the README: https://github.com/minerllabs/minerl

lukedoma1 commented 1 week ago

Which version of Python do we need? I don't see where in the README the instructions for the correct python version are.

Miffyli commented 1 week ago

Yes, those were never added as "the current Python version was the right at the time" 😅 . You can try using e.g., Python 3.8, but I think this leads to issues with other dependencies not supporting older Pythons. This is a dependency-mess that makes installation of the older MineRLs difficult, and maintainers have not had time to fix these issues

lukedoma1 commented 1 week ago

Okay, thank you. Yeah, I wasn't able to figure out how to install v0.3.7, but I eventually got v1.0.0 to work with python 3.10 using Ubuntu VM.