gpt4 book ai didi

python - 在Python中使用 Storm

转载 作者:行者123 更新时间:2023-11-30 23:27:58 24 4
gpt4 key购买 nike

我想使用storm在python中创建一个hello world。
我的服务器管理器(Linux 服务器)告诉我服务器上安装了storm,并且我现在看到了控制面板。
当我尝试导入本教程提到的 Storm 时:https://storm.canonical.com/Tutorial#Importing错误提示:

ImportError: No module named storm  

我应该怎么做才能导入这个库?

最佳答案

您的操作系统版本是什么?可能没有安装成功。该 ppa 中的操作系统版本无法运行。

尝试:

sudo apt-get --purge remove python-storm 
sudo rm -rf /etc/apt/sources.list.d/storm-ppa-*.list
sudo apt-get update
sudo apt-get install python-storm

或者使用pypi重新安装

关于python - 在Python中使用 Storm ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21848320/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com