41 months 28 days conda two qt

1.

 

Why are two Qt binaries?

There are two tips Qt binaries set as follows:

objc[32802]: Class RunLoopModeTracker is implemented in both xxx and yyy. One of the two will be used. Which one is undefined.
QObject::moveToThread: Current thread (0x7fefa3512020) is not the object's thread (0x7fffb38b9380).
Cannot move to target thread (0x7fefa3512020)

You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
This application failed to start because it could not find or load the Qt platform plugin "cocoa"
in "".

Available platform plugins are: cocoa, minimal, offscreen.

Reinstalling the application may fix this problem.

The reason is that the Mac using the Qt brew install it, and install it using the Qt Conda, two overlapping package use, to unload a priority unloading Qt conda installed, perform the following operations:

brew install qt
brew install pyqt
conda uninstall pyqt
conda uninstall qt
2.

After I own MacOS reinstall, want to test the Python opencv can not be used
and then pip install opencv-python
Sure, I tested open the camera codes when reported a
qt.qpa.plugin: could not find the qt platform plugin "cocoa" in " "

At that time a variety of Goole, Baidu use both.
Finally, the solution is obtained

pip install opencv-python-headless

 


https://blog.csdn.net/weixin_43635647/article/details/104243317



https://www.jianshu.com/p/d34ad886b7fa

Guess you like

Origin www.cnblogs.com/javastart/p/12378452.html