[英]ModuleNotFoundError: No module named ‘cv2’
I am getting this error when trying to deploy my streamlit app.尝试部署我的 streamlit 应用程序时出现此错误。 It runs perfectly when I execute it through vscode.
当我通过 vscode 执行它时它运行完美。 How to fix it?
如何解决?
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/scriptrunner/script_runner.py", line 475, in _run_script
exec(code, module.__dict__)File "/app/face-emotion-recognition/streamlit_app.py", line 3, in <module>
import cv2
Maybe that's because you've only installed the cv2
module in VSCode.也许那是因为你只在 VSCode 中安装了
cv2
模块。 Try installing it in the platform you're currently using.尝试将它安装在您当前使用的平台上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.