没有名为' stable_baseline3'即使将其安装在Google Colab中
我正在尝试在Google Colab中建立稳定的基本3。该文档通过Jupyter笔记本电脑连接到我的PC上的本地运行时。在我的PC上,我使用Anaconda安装了稳定的基线3,并获得了输出,即安装了基本稳定的基线3。我还运行了单元格:
!pip install stable-baselines3[extra]
!pip install stable-baselines3
尽管如此
!pip install stable-baselines3 --upgrade
,当我运行单元格时:
import stable_baseline3
from stable_baselines3 import DQN
etc...
我在modulenotfounderror的第1行上获得错误:没有名为“ Stable_baseline3”的模块。我不明白为什么会发生这种情况,有人知道如何解决它吗?
I am trying to set up stable baselines 3 in google colab. The document is connected to a local runtime on my pc through jupyter notebooks. On my pc i have installed stable baselines 3 using anaconda, and got the output saying essentially stable baselines 3 is installed. I have also run the cells:
!pip install stable-baselines3[extra]
!pip install stable-baselines3
and
!pip install stable-baselines3 --upgrade
Despite this, when i run the cell:
import stable_baseline3
from stable_baselines3 import DQN
etc...
I get the error on line 1 of ModuleNotFoundError: No module named 'stable_baseline3'. I dont understand why this would be happening, does anybody know how it could be solved?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,
请尝试在单独的单元格中首先导入稳定的baselines3
i had the same problem
try to import stable-baselines3 first in alone cell and it should work