![](/img/trans.png)
[英]ModuleNotFoundError: No module named 'face_recognition'
[英]ModuleNotFoundError: No module named 'face_recognition'->pip install dlib error
摘要:我正在尝试运行包含 face_recognition 的 python 文件。 但是,它给我 ModuleNotFoundError:没有名为“face_recognition”的模块。
我已经尝试了解决的方法:
4)写pip时安装dlib。 它给我
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You must use Visual Studio to build a python extension on windows. If you
are getting this error it means you have not installed Visual C++. Note
that there are many flavors of Visual Studio, like Visual Studio for C#
development. You need to install Visual Studio for C++.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*
而我仅将 visual studio code 用于开发。 我已经在 vs 代码(gcc 编译器)中安装了 c++。
解决这个问题很重要,因为:
1)没有这个 face_recognition 模块就无法工作,我无法将项目作为工作文件打开。
随时提出问题所需的任何疑问。 任何帮助都会受到尊重。
你可以试试这个博客看看它是否有效,希望这对你有所帮助: dlib 安装步骤
从它的外观来看,它是 Windows 操作系统所需的外部库,我遇到过类似的情况,我被要求在安装 PC 游戏时升级/使用这个库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.