-
pip install opencv-python 설치해도 잘 안될 때환경구축 2023. 10. 27. 23:46
여러가지 문제가 있겠지만 cv2 인식을 못하면 위 명령어를 쳐야하고
명령어를 쳤을때 잘 실해되지 않으면 특정 버전에서만 돌아가는 코드가 있는것 같다.
나의 경우
아래 같은 에러가 떳었고 아래 명령어로 해결함.
QObject::moveToThread: Current thread (0x2b68950) is not the object's thread (0x328ee50).
Cannot move to target thread (0x2b68950)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "~/miniconda3/envs/surroundocc/lib/python3.7/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.
Aborted (core dumped)pip install opencv-python==4.1.2.30
출처 :
반응형'환경구축' 카테고리의 다른 글
ubuntu22.04에서 화면캡쳐 side bar에 고정 시키기 (0) 2023.10.27 miniconda 및 jupyter 설치 (0) 2023.10.11 ubuntu 설치시 검은 화면이 나올때 (0) 2023.10.10 cuda 설치 및 pytorch 설치 (0) 2023.10.10 리눅스에서 MAC 키보드 사용할때 function키 기본으로 사용하기 (0) 2023.09.03