报错FileNotFoundError: Could not find module.... Try using the full path with constructor syntax."/>
解决报错FileNotFoundError: Could not find module.... Try using the full path with constructor syntax.
FileNotFoundError: Could not find module ‘D:\anaconda\envs\pybullet-stb3\lib\site-packages\atari_py\ale_interface\ale_c.dll’ (or one of its dependencies). Try using the full path with constructor syntax.
今天在debug的时候发现自己用的gym库的版本是0.19.0但是发现项目的requirement的版本是0.21.0,于是pip uninstall gym
,然后pip install gym==0.21.0
。后面又改变了一些库的版本,然后运行出现上面的报错。之后,在stackoverflow上看到一些方案,出现这个报错就是因为gym版本的变动,因为 gym 0.21.0 支持 ale-py 并且不再使用 atari-py,所以导致了冲突。之后重新安回gym的0.19.0版本错误解除。
stackoverflow上也提供了几种解决方案:
更多推荐
解决报错FileNotFoundError: Could not find module.... Try using the full path with co
发布评论