解决报错FileNotFoundError: Could not find module.... Try using the full path with constructor syntax.

编程入门 行业动态 更新时间:2024-10-26 16:25:17

解决<a href=https://www.elefans.com/category/jswz/34/1771188.html style=报错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

本文发布于:2024-03-10 14:30:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1728232.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   find   FileNotFoundError   module   syntax

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!