Skip to content

0.30.0 installation fails under Python 3.10 #5826

@TheRisenPhoenix

Description

@TheRisenPhoenix

Describe the bug
I'm trying to install mlagents 0.30.0 with Python 3.10, as it is now officially supported. However, installation fails, because some dependency installs numpy==1.21.2, which is incomaptible with Python 3.10.
The problem seems to be with mlagents-env, which directly depends on numpy==1.21.2

To Reproduce
Run pip3 install mlagents in an Python 3.10.x environment and watch it fail

Console logs / stack traces

  Building wheel for numpy (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for numpy (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [271 lines of output]
      setup.py:63: RuntimeWarning: NumPy 1.21.2 may not yet support Python 3.10.
[....]
[....]
      TypeError: CCompiler_spawn() got an unexpected keyword argument 'env'

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for numpy

Environment (please complete the following information):

  • Unity Version: Unity 2021.3.12f1
  • OS + version: Windows 10
  • ML-Agents version: 0.30.0
  • Torch version: 1.18.0

Metadata

Metadata

Labels

bugIssue describes a potential bug in ml-agents.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions