Running learn.py ModuleNotFoundError:No module named 'docopt'
(ml-agents) C:\ml-agents>py -3 python/learn.py python/ball --train
Traceback (most recent call last):
File "python/learn.py", line 7, in <module>
from docopt import docopt
ModuleNotFoundError: No module named 'docopt'
then I checked if I didn't install docopt, typying pip list,then it returns that docopt installed at version 0.6.2 So I am sure it must something wrong otherwise.
I try changing
(ml-agents) C:\ml-agents>py -3 python/learn.py python/ball --train
into
(ml-agents) C:\ml-agents>python python/learn.py python/ball --train
and it somehow works!
Does python in your setup refer to Python 3? It could be that docopt is installed for default 2.X python but not 3.X ?
I followed Getting-Started-with-Balance-Ball.md and Installation.md.
conda create -n ml-agents python=3.5
Python is ver3.5.5.
Your issue may be with pip and conda conflicting. If you installed docopt with pip install, but you're using conda as your package manager, you would need to install docopt with conda as well.
I've also had the docopt issue when using (ml-agents) C:\ml-agents>python learn.py ball --train
Changing to the parent folder fixed that for me.
I was having this issue, using ./learn.py worked for me from Anaconda Prompt.
Folks, I hope you were all able to figure out your issues. Going to close this issue now due to inactivity, but if you need additional assistance, please feel free to reopen the issue.
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.