在Pycharm中导入“ face_recognition” 时出现此错误,但在“ anaconda命令提示符” 上运行得很好。我不明白为什么我在Pycharm中出错,但在Anaconda cmd中却出错。我可以成功在Pycharm中导入cv2 。有人可以告诉我如何在pycharm中运行它吗?以下是完整错误:-
Traceback (most recent call last):
File "C:/Users/r/PycharmProjects/Practise AI/check.py", line 1, in <module>
import face_recognition
File "C:\ProgramData\Anaconda3\lib\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 "C:\ProgramData\Anaconda3\lib\site-packages\face_recognition\api.py", line 3, in <module>
import PIL.Image
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py", line 64, in <module>
from . import _imaging as core
ImportError: DLL load failed: The specified module could not be found.