Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
16.93k stars 4.14k forks source link

API Number is not Compatible #2478

Closed cmburgul closed 5 years ago

cmburgul commented 5 years ago

UnityEnvironmentException: The API number is not compatible between Unity and python. Python API : API-9, Unity API : API-4. Please go to https://github.com/Unity-Technologies/ml-agents to download the latest version of ML-Agents.

I don't find any update for API-4.

Environment :

image

vincentpierre commented 5 years ago

This error arrises because your Python ml-agents and your Unity ml-agents do not have the same version. To upgrade python, you need to run pip3 install mlagents==X.Y.Z where X.Y.Z is the version you want. To upgrade the unity code version, you must reclone and update all the files of this folder in you project.

Closing this issue as it is a duplicate of #1883, #2444 and #2182

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.