[pyinstaller] [open-cv] ImportError:OpenCV加载程序:缺少配置文件:['config.py']

时间:2019-03-24 01:24:39

标签: python opencv binary pyinstaller

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

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

错误日志: Log Trace

1 个答案:

答案 0 :(得分:1)

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

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