python - [pyinstaller][open-cv] ImportError : OpenCV loader: missing configuration file: ['config.py' ]

标签 python opencv binary pyinstaller

我正在尝试构建我的代码的二进制包,构建过程成功完成,但是当我尝试运行二进制文件时,出现这样的错误:

ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation.

错误日志: Log Trace

最佳答案

我已经通过升级opencv-python和pyinstaller解决了这个问题

pip install --upgrade opencv-python
pip install --upgrade pyinstaller

关于python - [pyinstaller][open-cv] ImportError : OpenCV loader: missing configuration file: ['config.py' ],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55319943/

相关文章:

c# - 如何将 2-2-2-2 格式的原始二进制图像转换为 C# 中的位图?

python - 使用 selenium webdriver 获取浏览器版本

python - 有没有办法从 Django 的任何地方访问上下文?

python - 在 MS-Windows 机器上使用 Python virtualenv

python - 如何在python中为openCV增加检测到的矩形的大小?

c++ - 为什么这个 bitset 收集算法不起作用?

python - 使用 ReturnValue 时出现扭曲异常

opencv - 通过添加 R+G+B 将 3 个 channel 合并为 1 个

c++ - 保存和加载 FlannBasedMatcher

c - 我无法理解我们看到的字符之间的抽象以及计算机如何处理它们