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
17.19k stars 4.16k forks source link

ModuleNotFoundError: No module named 'yaml' #2071

Closed danksky closed 5 years ago

danksky commented 5 years ago

Upon running:

python3 learn.py ../../projects/Cats/CatsOnBicycles.app --run-id=cob_1 --train,

I encounter the following error message:

Traceback (most recent call last): File "learn.py", line 10, in <module> import yaml ModuleNotFoundError: No module named 'yaml'

So, I try running the following:

pip3 install pyyaml

Which confusingly responds with the following:

Requirement already satisfied: pyyaml in /usr/local/lib/python3.7/site-packages (5.1)

How can I get past this to start training?

shihzy commented 5 years ago

hi @danksky - as of version 0.8, please use mlagents-learn to start the training. Refer to the installation and basic guide. Let me know if this answers your question.

Usmaniatech commented 5 years ago

I want to train on version 0.4. and mlagents-learn don't work. @unityjeffrey

shihzy commented 5 years ago

hi @Usmaniatech is there a reason you want to use v0.4?

Usmaniatech commented 5 years ago

@unityjeffrey I am working with deep reinforcement learning MADDPG algorithm and version > 0.4 don't support them.

ervteng commented 5 years ago

Thanks for the discussion - closing this issue due to inactivity. Feel free to open a new issue if you're still running into problems.

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.