mac上运行python+opencv报错

最近在python语言环境下运行opencv总是报错,下面是报错内容:

2020-07-26 23:09:55.093 Python[8142:209483] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)
解决办法就是终端运行:
defaults write org.python.python ApplePersistenceIgnoreState NO
如果在后续使用中发现GLUT窗口还是QT窗口有问题了,可以关闭此功能:
defaults write org.python.python ApplePersistenceIgnoreState YES
 

你可能感兴趣的:(opencv,python3,python,opencv)