Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shswdmx1 opened this issue Dec 21, 2023 · 8 comments
Labels
help wanted Extra attention is needed

Comments

@shswdmx1
Copy link

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

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

Originally posted by @wenzhangliu in #7 (comment)

@wenzhangliu
Copy link
Collaborator

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

@shswdmx1
Copy link
Author

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] 找不到指定的模块。

@wenzhangliu
Copy link
Collaborator

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

@wenzhangliu wenzhangliu added the help wanted Extra attention is needed label Dec 21, 2023
@shswdmx1
Copy link
Author

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

@wenzhangliu
Copy link
Collaborator

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

@shswdmx1
Copy link
Author

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

@wenzhangliu
Copy link
Collaborator

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

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

@shswdmx1
Copy link
Author

我参考这个链接https://blog.csdn.net/qq_27297393/article/details/105349229解决了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants