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