ERROR: Could not build wheels for AutoROM...解决方法
Posted Laurence Geng
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR: Could not build wheels for AutoROM...解决方法相关的知识,希望对你有一定的参考价值。
该问题一般发生在Windows系统上,如果项目依赖到gym,就有可能触发该问题,因为AutoROM是gym的一个依赖,错误信息如下:
ImportError: It seems that you are trying to install the Atari ROMs on Windows. While this is not supported, the DLL error can be solved by installing the OpenSSL DLLs from: https://slproweb.com/products/Win32OpenSSL.html
根据上述错误提示和AutoROM的官方文档:
IMPORTANT: We do not have official support for Windows. However, if you are on Windows and encounter a DLL import error, you may need to install OpenSSL v1.1.1S.
可知:AutoROM官方没有声明支持Windows,但是其实是可以运行的,其中最常遇到的就是上面这个错误。根具官方建议:在Windows上下载并安装OpenSSL v1.1.1S即可解决问题,实测有效。OpenSSL的下载地址:https://slproweb.com/products/Win32OpenSSL.html,注意:选择OpenSSL v1.1.1S,v3没有测试过。
此外,还有两点需要注意:
- 该问题使用virtualenv和conda构建环境时都会遇到,从这个问题上看:conda未必能解决所有Windows上的兼容性问题;
- 可能你的Windows命令行能调出openssl命令,但它可能是在cigwen等环境下安装的,系统层面上是没有,还是需要安装OpenSSL
以上是关于ERROR: Could not build wheels for AutoROM...解决方法的主要内容,如果未能解决你的问题,请参考以下文章
Error:Could not find com.android.tools.build:gradle:2.14.1.
ionic4 build error Could not find plugin “proposal-numeric-separator”
Windows cordova build Error: Could not find gradle wrapper within Android SDK.(转)
ERROR: Could not find com.android.tools.build:gradle:3.5.0. Searched in the following locations:
Python ERROR: Could not build wheels for twisted-iocpsupport, which is required to install pyproject
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly(代码