【问题标题】:How to install libraries that require compilation on google-colaboratory如何在 google-colaboratory 上安装需要编译的库
【发布时间】:2018-07-09 05:41:18
【问题描述】:

当尝试像这样安装需要cmake 的库时:

!pip install dlib

笔记本返回以下错误:

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

【问题讨论】:

    标签: python python-3.x jupyter-notebook google-colaboratory


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-25
      • 2018-06-06
      • 1970-01-01
      • 2020-06-16
      • 2020-12-04
      • 2019-11-16
      • 1970-01-01
      • 2017-12-20
      相关资源
      最近更新 更多