1

系统:Windows 10

使用 PyCharm 的 Python 3.6。

我尝试从 Pycharm 安装 face_recognition python 模块并收到此错误:

CMake 错误:在 EnableLanguage 之后未设置 CMAKE_C_COMPILER

建议的解决方案是从文件目录中的命令行运行它,但是当我这样做时仍然存在错误。

我一直在使用 pip3 install face_recognition。

命令“c:\users*\appdata\local\programs\python\python37\python.exe -u -c”导入setuptools,tokenize;file ='C:\Users\*\AppData\Local\Temp\pip-install-y2duvqsp\dlib\setup.py';f=getattr(tokenize, 'open', open)( file );code=f.read ().replace('\r\n', '\n');f.close();exec(compile(code, file , 'exec'))" install --record C:\Users\jagui\AppData \Local\Temp\pip-record-dm_14rqt\install-record.txt --single-version-externally-managed --compile" 在 C:\Users*\AppData\Local\Temp\pip-install 中出现错误代码 1 失败-y2duvqsp\dlib\

出了什么问题?

4

1 回答 1

1

https://pypi.org/project/face_recognition/#description

要求

  • macOS 或 Linux(Windows 不受官方支持,但可能有效)

非官方@masoudr 的 Windows 10 安装指南(dlib + face_recognition):https ://github.com/ageitgey/face_recognition/issues/175#issue-257710508

于 2018-09-19T18:46:32.543 回答