首页 > 解决方案 > 错误:dlib-19.8.1-cp36-cp36m-win_amd64.whl 不是此平台支持的轮子

问题描述

下载 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.

标签: pythonvisual-studioopencvface-recognitiondlib

解决方案


好吧。我安装dlib了一段时间。我知道现在不该做什么。你唯一需要的就是这个。按照步骤。这就对了。事实证明,dlibpythons 最新版本不支持。因此,您必须安装一个 python wheel易于pip install wheel通过cmd. 然后下载提到的文件后[按照下面git配置文件中提到的步骤,你会很好。]

单独安装所有东西会有点压力。下面的链接运行安装dlib程序包。它会询问您的用户运行权限并被 Windows Defender 阻止,但按更多并单击“仍然运行”。不要忘记测试您的软件包安装!

https://github.com/shashankx86/dlib_compiled


推荐阅读