当前位置: 首页 > 知识库问答 >
问题:

Pip3无法在macOS上安装face_recognition

姚德容
2023-03-14

在macOS上,我在终端中运行了这个命令:

sudo pip3 install face_recognition

它开始安装,然后抛出这个错误:

错误:命令出错,退出状态为1:/Library/framework/python . framework/Versions/3.8/bin/python 3.8-u-c ' import sys,setuptools,tokenize。sys . argv[0]= ' " ' " '/private/tmp/pip-install-75ks 5d 9 l/dlib/setup . py ' " ' " ';file =“”“”/private/tmp/pip-install-75ks 5d 9 l/dlib/setup . py““”;f=getattr(tokenize,' " ' " ' open ' " ' " ',open)(file);code=f.read()。替换(“”“”“\ r \ n”“”“”“”“”“\ n”“”);f . close();exec(compile(code,file,' " ' " ' " ' exec ' " ' " ' " ')' install-record/private/tmp/pip-record-bze 0 MCI 9/install-record . txt-single-version-externally-managed-compile-install-headers/Library/Frameworks/python . framework/Versions/3.8/include/python 3.8/dlib检查日志以获取完整的命令输出。

我首先阅读了关于安装<code>dlib</code>的建议,这也引发了一个错误。我怎样才能解决这个问题?

共有1个答案

颛孙信厚
2023-03-14

首先使用以下命令安装cmake

pip3 install cmake
 类似资料:
  • 逐步执行说明: https://cloud.google.com/sdk/docs/quickstart 解压存档 正在运行 收到此消息: 欢迎使用Google Cloud SDK! 就这些。 有什么办法让它工作吗?

  • 当我像这样在终端上输入时: 它向我展示了这样的错误: 错误:安装cocoapods错误:错误:无法构建gem本机扩展。 /系统/库/框架/Ruby。framework/Versions/2.6/usr/bin/ruby-I/Library/ruby/Site/2.6.0-r/siteconf20201203-2632-pfzsbj。rb extconf。rb正在检查外国金融机构。h、 ..**ex

  • 无法获取URLhttps://pypi.python.org/simple/jupyter/:确认ssl证书时出现问题:[ssl:certificate\u VERIFY\u FAILED]certificate VERIFY FAILED(\u ssl.c:748)-跳过 我使用的是Windows 7机器,Python 3.6版本和pip版本是9.0.1。

  • 我正在尝试使用pip3 install pygame安装pygame,但出现此错误: 错误: 命令错误,退出状态 1: 命令: /库/框架/Python.框架/版本/3.8/bin/python3.8 -u -c ' 导入系统, 安装程序工具, 标记化;sys.argv[0] = “”“”/私有/var/文件夹/5p/25vgdgh93qvg09z18wy0mg00000gn/T/pip-inst

  • 今天,我用brew upgrade命令升级了python3.7。 我尝试使用安装PyYAML包。 我有这个错误,不知道。。 最后 我试图解决这个问题,但仍然不知道。 https://github.com/yaml/pyyaml/issues/126 如何安装Python的yaml包 我如何解决这个问题...?