python - 无法在 python2 上安装 dlib
问题描述
我在安装 dlib 库期间遇到错误。我已经安装了cmake。我试图在 python3 上安装它,但问题是一样的。
Building for: NMake Makefiles
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
The CMAKE_C_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 "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error in CMakeLists.txt:
The 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.
解决方案
推荐阅读
- laravel - Laravel、Vue 和 Momentjs 通过在 modal 中获取数据并发送到数据库来添加日期
- php - 在 PHP 中提交表单时忽略条件
- reactjs - 如何避免在 react-redux 连接组件中重新渲染?
- laravel - 我需要在服务器上安装 Composer 吗?
- qemu - Qemu 无法立即识别文件更改
- vbscript - 无法使用 VBScript 搜索给定字符串中的字符?
- javascript - Opera桌面浏览器开发
- laravel - 传递给 App\Event\ChatEvent::construct() 的参数 2 必须是 App\User 的实例
- c++ - 查找二维数组中的最大数及其在行和列中的位置
- reporting-services - 基于 2 组的 SSRS 行号