无法为dlib生成控制盘。在dlib库上工作是否需要安装Visual Studio?

2024-05-19 16:26:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试安装dlib库,以便在jupyter笔记本中使用它。但当尝试pip安装dlib时,会显示如下错误(注意:cmake库已完美安装):

-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:5 (message):



  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


  You must use Visual Studio to build a python extension on windows.  If you
  are getting this error it means you have not installed Visual C++.  Note
  that there are many flavors of Visual Studio, like Visual Studio for C#
  development.  You need to install Visual Studio for C++.


  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Tags: piptocmakeyoufor错误笔记本jupyter