[Bug Report] Building wheel for gym (setup.py) ... error
Describe the bug Building wheel for gym (setup.py) ... error
System Info My python version is 3.7.3,My linux version is Ubuntu18.04
The bug info is: Building wheels for collected packages: gym Building wheel for gym (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [481 lines of output]
Traceback (most recent call last): File "", line 36, in File "", line 34, in File "/tmp/pip-install-ghwoed05/gym_e92a96bf7ac54dd59edd31213e4aa557/setup.py", line 74, in "Programming Language :: Python :: 3.9", File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup return distutils.core.setup(**attrs) File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands self.run_command(cmd) File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command super().run_command(command) File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command cmd_obj.run() File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 395, in run self.egg2dist(self.egginfo_dir, distinfo_dir) File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 534, in egg2dist pkg_info = pkginfo_to_metadata(egginfo_path, pkginfo_path) File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/metadata.py", line 160, in pkginfo_to_metadata for key, value in generate_requirements({extra: reqs}): File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/metadata.py", line 138, in generate_requirements for new_req in convert_requirements(depends): File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/metadata.py", line 103, in convert_requirements parsed_requirement = Requirement(req) File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/vendored/packaging/requirements.py", line 37, in init raise InvalidRequirement(str(e)) from e wheel.vendored.packaging.requirements.InvalidRequirement: Expected end or semicolon (after version specifier) opencv-python>=3. ~~~^ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for gym Running setup.py clean for gym Failed to build gym
Source: openai/gym