ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

Fix the installation guide

Open irekkosek opened this issue 10 months ago • 5 comments

Describe the bug Installation guide is obviously flawed with numpy and python versions mismatch.

To Reproduce Steps to reproduce the behavior: try following your own installation guide

Console logs / stack traces

 RuntimeWarning: NumPy 1.21.2 may not yet support Python 3.10.
       TypeError: CCompiler_spawn() got an unexpected keyword argument 'env'

Environment (please complete the following information):

  • Unity Version: Unity 2022.3.25f1
  • OS + version: Windows 10
  • ML-Agents version: (e.g. ML-Agents v1.0.0)
  • Torch version: as in installation guide
  • Environment: conda, pip etc.

irekkosek avatar Apr 28 '24 10:04 irekkosek

I had the same issue and fixed it by manually replicating the changes here: https://github.com/Unity-Technologies/ml-agents/pull/6082/files

Also, I think you need Unity 2023.2+ ?

XRFstudent avatar Apr 28 '24 20:04 XRFstudent

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 21 '24 12:06 github-actions[bot]

linux没有这个问题试过了,这个问题是window没有这个numpy的包,可以尝试使用pip官方的项目没问题的编译一次

MrChenLearnSpace avatar Jul 04 '24 08:07 MrChenLearnSpace

The installation guide also suggests you can use newer versions of Python than 3.10.12. That does not seem to be the case. I made a PR to fix the docs but the CLA form is not worth changing a single line in the docs. https://github.com/Unity-Technologies/ml-agents/pull/6131/files

TuureKaunisto avatar Jul 27 '24 18:07 TuureKaunisto

I got past this issue by changing numpy version in mlagent-env/setup.py to have a dependency on version 1.22.1 instead of 1.21.2. After that, following the instructions on their installation page (https://unity-technologies.github.io/ml-agents/Installation/) works.

polycrunchgames avatar Aug 08 '24 11:08 polycrunchgames

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 07 '24 12:09 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale. Please open a new issue for related bugs.

github-actions[bot] avatar Sep 21 '24 12:09 github-actions[bot]