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

北城余情 提交于 2020-03-22 10:53:26

问题


I am trying to build binary package of my code, the build process completed with success, but when I m trying to run the binary file, I got such an error:

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

Error log:


回答1:


I have solved this problem by upgrading opencv-python and pyinstaller

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


来源:https://stackoverflow.com/questions/55319943/pyinstalleropen-cv-importerror-opencv-loader-missing-configuration-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!