Jann
Jann

Reputation: 1829

How to install libraries that require compilation on google-colaboratory

When trying to install a library that requires cmake like this:

!pip install dlib

the notebook returns the following error:

error: [Errno 2] No such file or directory: 'cmake': 'cmake'

Upvotes: 9

Views: 10694

Answers (1)

Jann
Jann

Reputation: 1829

You can use apt commands on google-colaboratory, so you can easily install cmake:

!apt update
!apt install -y cmake
!pip install dlib

Upvotes: 23

Related Questions