没有名为' stable_baseline3'即使将其安装在Google Colab中

发布于 2025-02-06 13:28:24 字数 521 浏览 5 评论 0原文

我正在尝试在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丘比特射中我 2025-02-13 13:28:24

我遇到了同样的问题,

请尝试在单独的单元格中首先导入稳定的baselines3

!pip install stable-baselines3

i had the same problem

try to import stable-baselines3 first in alone cell and it should work

!pip install stable-baselines3
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文