Open Carton9 opened 1 year ago
same problem
I have the same problem. It must be something with the installer, since after installing there are only two files in the site-packages directory: libmagent
.so and testlib
. There is no init file and it seems all relevant code is missing. Also, on a different but related note: the example code heavily uses the pettingzoo lib, but there is no requirement for it (not in the toml file, not in requirements nor in setup).
same problem
Solution that worked for me (credit to Carton9): After you run command pip install magent2
, you need to download MAgent2/magent2/* and add all those files into your python library folder.
I install the magent2 by command
pip install magent2
and try to run the demon code. Yet it shows following error.Traceback (most recent call last): File "****\test.py", line 1, in <module> from magent2.environments import battle_v4 ModuleNotFoundError: No module named 'magent2.environments'