我应该在哪里安装CMake? [英] Where should I install CMake?

查看:156
本文介绍了我应该在哪里安装CMake?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为正在处理的项目安装dlib,但尝试时出现此错误:

I am trying to pip install dlib for a project I am working on, but when I try I get this error:

RuntimeError:必须安装CMake才能构建以下扩展:dlib

RuntimeError: CMake must be installed to build the following extensions: dlib

我尝试安装CMake,但不知道应该在哪里找到提取的文件?

I tried to install CMake, but couldn't understand where should I locate the extracted files?

推荐答案

以下是此错误的主线程解决方案 https://stackoverflow.com/a/52564257/7060530

Here is the main thread solution of this error https://stackoverflow.com/a/52564257/7060530

我也遇到了这个问题.我使用的是 windows ,并且有一个要安装要求的 python 环境.

I ran into this issue as well. I am using windows and have a python environment that I am installing the requirements to.

我先运行了 pip install cmake ,然后又运行了 pip install dlib .我不再收到错误并成功安装了dlib.

I ran pip install cmake , and then pip install dlib. I no longer received the error and successfully installed dlib.

这篇关于我应该在哪里安装CMake?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆