python - 错误 : dlib-19. 8.1-cp36-cp36m-win_amd64.whl 不是此平台上支持的轮子

标签 python visual-studio opencv face-recognition dlib

下载 dlib 模块时,终端输出返回错误:

CMakeLists.txt 中的 CMake 错误:
CMAKE_CXX_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  To use the NMake generator with Visual C++, cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem, run cmake from the
  Visual Studio Command Prompt (vcvarsall.bat).

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

最佳答案

好的。我正在安装 dlib相当长一段时间。我知道现在不该做什么。
你唯一需要的就是这个。
按照步骤。这就对了。原来 dlib pythons最新版本不支持。所以你必须安装一个python wheel很容易通过命令pip install wheel安装在您的 cmd 上.然后下载提到的文件后[按照下面git配置文件中提到的步骤,你会很好。]
单独安装所有东西会有点压力。下面的链接运行安装程序以安装 dlib包裹。它会询问您的用户运行权限并被 Windows Defender 阻止,但按更多并单击“仍然运行”。
不要忘记测试您的软件包安装!
https://github.com/shashankx86/dlib_compiled

关于python - 错误 : dlib-19. 8.1-cp36-cp36m-win_amd64.whl 不是此平台上支持的轮子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57614002/

相关文章:

python - 获取 int() 参数必须是字符串或数字,而不是 'Column' - Apache Spark

visual-studio - 在 Visual Studio 2010 中显示多于(或少于)六个最近的项目

.net - 在 VS 2015 社区版中将 .Net 框架从 4.5.2 更改为 4.5 时出现编译错误

visual-studio - 在 Visual Studio 中复制/粘贴时有没有办法自动转义反斜杠?

OpenCV OMX 工件

python - 如何在 vscode 中为 python 启用代码镜头支持?

python - 使用 Tkinter 和 pylab/matplotlib 嵌入 : can't update figure/canvas? 播放、暂停、停止的彩色绘图动画

c++ - OpenCV矩阵和int矩阵之间的转换

java - 使用 Java 和 OpenCV 进行眼睛检测时需要帮助解决异常处理

python - 如何在 Django 管理面板的 modelAdmin 中仅显示日期时间字段中的日期?