简体   繁体   English

在pycharm ImportError中:DLL加载失败:找不到指定的模块。 导入人脸识别时

[英]In pycharm ImportError: DLL load failed: The specified module could not be found. while importing facerecognition

I am getting this error while importing "face_recognition" in Pycharm but it runs perfectly fine from "anaconda command prompt" . 在Pycharm中导入“ face_recognition”时遇到此错误,但从“ anaconda命令提示符”可以正常运行。 I don't understand why i am getting error in Pycharm but not in Anaconda cmd. 我不明白为什么我在Pycharm中出错,但在Anaconda cmd中却出错。 I can successfully import cv2 in Pycharm . 我可以在Pycharm中成功导入cv2 Can someone tell me how can i run it in pycharm? 有人可以告诉我如何在pycharm中运行它吗? Below is complete error :- 以下是完全错误:-

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.

OK it finally worked after adding the anaconda interpreter in pycharm setting. 好的,在pycharm设置中添加了anaconda解释器后,它终于可以工作了。

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ImportError:DLL加载失败:找不到指定的模块。 在pycharm中导入cv2时 - ImportError: DLL load failed: The specified module could not be found. when importing cv2 in pycharm 导入 Dash 时出错:“ImportError: DLL load failed while importing _brotli: The specified module could not be found.” - Error when importing Dash: "ImportError: DLL load failed while importing _brotli: The specified module could not be found." 导入 tensorflow 时,出现错误“导入错误:DLL 加载失败:找不到指定的模块。” - While importing tensorflow, got the error 'ImportError: DLL load failed: The specified module could not be found.' “ImportError: DLL load failed while importing mariadb: The specified module could not be found”的解决方法。 - Workaround for “ImportError: DLL load failed while importing mariadb: The specified module could not be found.” ImportError: DLL 在导入 cv2 时加载失败:在 pycharm 中找不到指定的模块,python 3.9 - ImportError: DLL load failed while importing cv2: The specified module could not be found in pycharm with python 3.9 MeCab:“ ImportError:DLL加载失败:找不到指定的模块。” - MeCab: “ImportError: DLL load failed: The specified module could not be found.” 导入错误:DLL 加载失败:找不到指定的模块。(Keras) - ImportError: DLL load failed: The specified module could not be found.(Keras) MeCab:“ImportError:DLL 加载失败:找不到指定的模块。” - MeCab: “ImportError: DLL load failed: The specified module could not be found.” 导入错误:DLL 加载失败:找不到指定的模块 - PyCharm - ImportError: DLL load failed: The specified module could not be found - PyCharm Pycharm:ImportError:DLL 加载失败:找不到指定的模块 - Pycharm: ImportError: DLL load failed: The specified module could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM