Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 错误:dlib-19.8.1-cp36-cp36m-win_amd64。whl在此平台上不是受支持的控制盘_Python_Visual Studio_Opencv_Face Recognition_Dlib - Fatal编程技术网

Python 错误:dlib-19.8.1-cp36-cp36m-win_amd64。whl在此平台上不是受支持的控制盘

Python 错误:dlib-19.8.1-cp36-cp36m-win_amd64。whl在此平台上不是受支持的控制盘,python,visual-studio,opencv,face-recognition,dlib,Python,Visual Studio,Opencv,Face Recognition,Dlib,下载dlib模块时,终端输出返回错误: CMakeLists.txt中的CMake错误: CMAKE_CXX_编译器: 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

下载dlib模块时,终端输出返回错误:

CMakeLists.txt中的CMake错误: CMAKE_CXX_编译器:

    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.

检查此链接以了解ubuntu或mac os平台上的安装情况

另一种类型的安装方法是,如果您正在将dlib用于人脸识别模型,请遵循以下答案

(Python3.6到3.7.0工作正常)

首先创建一个环境,conda create-n env_name python=version

然后激活,conda激活环境名称


现在通过conda forge频道安装,conda install-c conda forge dlib=19.17

您是否尝试了它的建议:要解决此问题,请从Visual Studio命令Prompt运行cmake虽然此链接可以回答问题,但最好在此处包含答案的基本部分,并提供链接供参考。如果链接页面发生更改,仅链接的答案可能无效。-请在降级之前检查答案的完整细节。我没有否决你的答案。我在一次评论中遇到了它,并发表了评论。只有链接的答案被认为是低质量的,因为链接到外部资源有可能在一段时间后导致无效,并且资源变得不可用。我将在这里提醒大家。谢谢你的支持