I created a python development environment, installed opencv-python and face_recognition.
(env) rafhael@rafhael-Alienware-m15-R6:~/Projetos/SMA/mi-sma-testes/face_rec$ python main.py
Traceback (most recent call last):
File "main.py", line 24, in <module>
import face_recognition
File "/home/rafhael/Projetos/SMA/mi-sma-testes/face_rec/env/lib/python3.8/site-packages/face_recognition/__init__.py", line 7, in <module>
from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
File "/home/rafhael/Projetos/SMA/mi-sma-testes/face_rec/env/lib/python3.8/site-packages/face_recognition/api.py", line 26, in <module>
cnn_face_detector = dlib.cnn_face_detection_model_v1(cnn_face_detection_model)
RuntimeError: Error while calling cudaGetDevice(&the_device_id) in file /tmp/pip-install-1n4zswvd/dlib/dlib/cuda/gpu_data.cpp:204. code: 999, reason: unknown error