【问题标题】:I am trying to run fbprophet and streamlit based web app on crypto-prediction, but the streamlit app does not recognize the prophet module我正在尝试在加密预测上运行基于 fbprophet 和 streamlit 的网络应用程序,但 streamlit 应用程序无法识别 prophet 模块
【发布时间】:2023-02-15 03:51:56
【问题描述】:

我正在尝试在加密预测上运行基于 fbprophet 和 streamlit 的网络应用程序,但 streamlit 应用程序无法识别 prophet 模块

这是错误

ModuleNotFoundError: No module named 'prophet'
Traceback:
File "C:\Users\HP\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "E:\Shubham\CPP Final Year Project\finadict-main\app.py", line 6, in <module>
    from prophet import Prophet

我已经安装了 anaconda,因为它更容易在 anaconda 中运行 fbprophet 我还创建了名为 prophet39 的环境

enter image description here

在运行 streamlit 应用程序时出现此错误

enter image description here

我现在应该怎么做

我已经访问了互联网上所有可能的解决方案,但找不到任何解决方案!!

这是代码code

顺便说一句,我正在使用Windows

我已经在互联网上尝试了所有可能的解决方案,但无法运行此 streamlit 应用程序

【问题讨论】:

  • 看起来您的终端中使用的 streamlit 不是您的 conda 环境中的那个(请参阅“C:\Users\HP\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\ script_runner.py”)。 streamlit也安装在prophet39上了吗?

标签: python runtime-error prediction streamlit facebook-prophet


【解决方案1】:

看起来你也在我们的论坛上分享了这个——在这里发布解决方案以提高可见性

您的 requirements.txt 文件中有错误的(过时的)包。 最新的包名应该是 prophet 。顺便说一句。删除pystan 包裹。然后还要更改 app.py 文件中的导入名称。

【讨论】:

    猜你喜欢
    • 2022-01-25
    • 2016-03-22
    • 2021-09-18
    • 2023-02-01
    • 2020-11-10
    • 2021-05-01
    • 2023-02-24
    • 2015-10-21
    • 2020-11-02
    相关资源
    最近更新 更多