如何在google-colaboratory上安装需要编译的库

问题描述 投票:3回答:1

当尝试安装需要cmake的库时,如下所示:

!pip install dlib

笔记本返回以下错误:

error: [Errno 2] No such file or directory: 'cmake': 'cmake'
python python-3.x jupyter-notebook google-colaboratory
1个回答
16
投票

你可以在google-colaboratory上使用apt命令,这样你就可以轻松安装cmake:

!apt update
!apt install -y cmake
!pip install dlib
© www.soinside.com 2019 - 2024. All rights reserved.