google-research / football

Check out the new game server:
https://research-football.dev
Apache License 2.0
3.28k stars 1.27k forks source link

after git, when I python3 -m pip install , it happened to me. 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. #344

Open OrilinZ opened 1 year ago

OrilinZ commented 1 year ago

Collecting pip Using cached pip-23.0-py3-none-any.whl (2.1 MB) Collecting setuptools Using cached setuptools-67.3.1-py3-none-any.whl (1.1 MB) Collecting wheel Using cached wheel-0.38.4-py3-none-any.whl (36 kB) Installing collected packages: pip, setuptools, wheel Attempting uninstall: pip Found existing installation: pip 20.0.2 Uninstalling pip-20.0.2: Successfully uninstalled pip-20.0.2 Attempting uninstall: setuptools Found existing installation: setuptools 44.0.0 Uninstalling setuptools-44.0.0: Successfully uninstalled setuptools-44.0.0 Successfully installed pip-23.0 setuptools-67.3.1 wheel-0.38.4 (football-env) (light-malib) zhz@ubuntu:/data/zhz/DB-Football-main/football$ python3 -m pip install psutil Collecting psutil Using cached psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (280 kB) Installing collected packages: psutil Successfully installed psutil-5.9.4 (football-env) (light-malib) zhz@ubuntu:/data/zhz/DB-Football-main/football$ python3 -m pip install . Processing /data/zhz/DB-Football-main/football Preparing metadata (setup.py) ... done Collecting pygame>=1.9.6 Using cached pygame-2.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.7 MB) Collecting opencv-python Using cached opencv_python-4.7.0.68-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.8 MB) Requirement already satisfied: psutil in ./football-env/lib/python3.8/site-packages (from gfootball==2.10.3) (5.9.4) Collecting numpy Using cached numpy-1.24.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB) Collecting gym<=0.21.0 Using cached gym-0.21.0.tar.gz (1.5 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

rayanramoul commented 1 year ago

I have the same error actually on MacOS

T-will19 commented 1 year ago

I have the same error. as follows:

Collecting pygame>=1.9.6 Using cached pygame-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.7 MB) Collecting opencv-python Using cached opencv_python-4.7.0.68-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.8 MB) Requirement already satisfied: psutil in ./football-env/lib/python3.9/site-packages (from gfootball==2.10.3) (5.9.4) Collecting numpy Using cached numpy-1.24.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB) Collecting gym<=0.21.0 Using cached gym-0.21.0.tar.gz (1.5 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.

abdulghani91 commented 1 year ago

I have the same error on ubuntu 20.04

wind-knows commented 8 months ago

My environment is windows but i met this problem before.

and i solved this problem by :

` pip install setuptools==65.5.0

pip install --user wheel==0.38.0 `