Skip to content

Failed to build numpy - NumPy 1.21.2 may not yet support Python 3.10 #6018

@Thomasphifer

Description

@Thomasphifer

I am trying to install ML Agents following these instructions

python -m pip install ./ml-agents-envs

error: subprocess-exited-with-error
× Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [287 lines of output]
setup.py:63: RuntimeWarning: NumPy 1.21.2 may not yet support Python 3.10.
warnings.warn(
....
....
....
ils\ccompiler.py", line 88, in <lambda>
          m = lambda self, *args, **kw: func(self, *args, **kw)
      TypeError: CCompiler_spawn() got an unexpected keyword argument 'env'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for numpy
Successfully built mlagents-envs
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects

Possibly related to: #5997

Environment:

  • Unity Version:Unity 2022.3.13f1
  • OS + version: Windows 11
  • ML-Agents version: release_21
  • Torch version: 1.13.1+cu117
  • Environment: conda mlagents
  • Python version: 3.10.12

Metadata

Metadata

Assignees

No one assigned

    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