欢迎光临散文网 会员登陆 & 注册

安装Atari环境报错缺少ale_c.dll

2022-06-22 11:04 作者:-PCon-  | 我要投稿

背景:

在Atari游戏环境中做RL测试。通过anaconda新建了环境,配置好torch,numpy,gym等环境。运行中报错如下:

意思是所显示路径下缺少ale_c.dll

处理方法:

方法1(对我情况无效,但点赞很多)

首先检索到了这个方案(作者@razzzu)

https://github.com/openai/gym/issues/1726

Step1: 卸载相关库

Step2: 安装 VS build tools工具

Download VS build tools here: https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16

运行后勾选左侧“C++ build tools”以及右侧的

  • MSVC v142-VS 2019 C++ x64/x86 build tools

  • windows 10 SDK

  • C++ CMaKer

  • Testing tools core features - build tools

Step3: 重启电脑

Step4: 重新安装库

Step5: 运行测试

and if everything worked then it should return a list of all games as shown below


我在完成上述步骤后发现还是缺少ale_c.dll,于是打算直接下载一个ale_c.dll

方法2 (有效)

根据stackoverflow上的方法

Step1: Download ale_c.dll from here(https://drive.google.com/file/d/1WQrEBliYbASwNDyyVIlPFSZHRwAa7sPp/view?usp=sharing). 

Step2: Copy it in C:\Users\Deep Raval\AppData\Local\Programs\Python\Python38\Lib\site-packages\atari_py\ale_interface (Your path can be different).

成功解决问题!

2021.5.20

安装Atari环境报错缺少ale_c.dll的评论 (共 条)

分享到微博请遵守国家法律