Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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'
like image 308
Jann Avatar asked Jan 30 '18 10:01

Jann


1 Answers

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

!apt update
!apt install -y cmake
!pip install dlib
like image 164
Jann Avatar answered Nov 13 '22 09:11

Jann