python - 错误: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.
解决方案
好吧。我安装dlib
了一段时间。我知道现在不该做什么。你唯一需要的就是这个。按照步骤。这就对了。事实证明,dlib
pythons 最新版本不支持。因此,您必须安装一个 python wheel
易于pip install wheel
通过cmd
. 然后下载提到的文件后[按照下面git配置文件中提到的步骤,你会很好。]
单独安装所有东西会有点压力。下面的链接运行安装dlib
程序包。它会询问您的用户运行权限并被 Windows Defender 阻止,但按更多并单击“仍然运行”。不要忘记测试您的软件包安装!
推荐阅读
- php - 从数组数组中过滤唯一值
- r - 在 Formattable 表中显示替代 color_bar 值
- python - Django:获取正确对象的问题
- c# - Using XDocument.XPathSelectElement with multiple conditions
- angular - FormIO FormBuilder 未在 Angular 8 中显示
- typescript - index.d.ts 错误 TS2307:找不到模块我自己的模块
- ios - 在 Swift 中设置闹钟时关于日期设置的问题
- node.js - 如何在程序中使用 firebase 工具进行部署时显示部署日志(无 CLI)
- java - 我如何使这个子例程能够使用双打而不仅仅是整数?
- css - 额外的 css 在 div 上增加了额外的间距