agi-brain/xuance

那现在windows是不是没法使用呢?我也是遇到了这个问题,也安装了这个pip install magent2,但是依然不行。

shswdmx1 opened this issue · 8 comments

          您好,出现这个错误是因为当前版本没考虑到Windows系统下,magent2环境的动态链接库文件。您可以试着安装一下这个环境,再看是否还会出现该错误?

pip install magent2
我们后期会修补这个问题,感谢您的反馈!

Originally posted by @wenzhangliu in #7 (comment)

你好,这个问题我们已经修复好了,测试可行。请问你安装的是哪个xuance版本?

Step 1: Create a new conda environment (python>=3.7 is suggested):

conda create -n xuance_env python=3.7
Step 2: Activate conda environment:

conda activate xuance_env
Step 3: Install the library:

pip install xuance
This command does not include the dependencies of deep learning toolboxes. To install the XuanCe with deep learning tools, you can type for PyTorch, for TensorFlow2, for MindSpore, and for all dependencies.pip install xuance[torch]pip install xuance[tensorflow]pip install xuance[mindspore]pip install xuance[all]

Note: Some extra packages should be installed manually for further usage.
我就按照这个步骤安装,然后最后pip install xuance[torch]安装了torch版本的。然后运行您examples文件中的代码,就报错OSError: [WinError 126] 找不到指定的模块。

好的。那方便说一下你运行的是哪个实例吗?另外最好能提供一下你安装的xuance版本,可以用pip list查看一下。最后还要麻烦截一个更完整的报错信息,便于帮助你找到报错的原因。

运行的实例是examples中的dqn_atari.py;xuance版本是1.0.5;报错信息截图:
GT C964XA%{E(H7_XGXK}R

这个是windows下的atari环境没有安装好的原因,和magent2没有关系了。可以先试试pip install gym[accept-rom-license],不知道有没有用,期待反馈~

感谢您的回复,但是似乎没什么用,而且我运行ppo_mujoco.py这个环境,也报这个错误。可能另有原因吧。

那应该和ale_c.dll这个动态链接库有关,你可以参考这个链接,试试看能不能解决你的问题?

https://www.bilibili.com/read/cv17216467/