【发布时间】: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 的环境
在运行 streamlit 应用程序时出现此错误
我现在应该怎么做
我已经访问了互联网上所有可能的解决方案,但找不到任何解决方案!!
这是代码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