【问题标题】:How to install mesh in google colab如何在 google colab 中安装网格
【发布时间】:2019-10-05 10:38:58
【问题描述】:

我正在尝试按照 repo https://github.com/MPI-IS/mesh 中的步骤在 google colab 中安装这个网格处理库

apt-get install libboost-all-dev

make
make install

但是当我运行一个依赖项目时https://github.com/TimoBolkart/voca 我明白了

 Traceback (most recent call last):
  File "/content/voca/run_voca.py", line 22, in <module>
    from utils.inference import inference
  File "/content/voca/utils/inference.py", line 27, in <module>
    from psbody.mesh import Mesh
ModuleNotFoundError: No module named 'psbody'

在 colab 中安装这个库的正确方法是什么?

【问题讨论】:

    标签: python-2.7 google-colaboratory


    【解决方案1】:

    目前这也适用于 google colab

    !pip install git+https://github.com/MPI-IS/mesh.git
    

    【讨论】:

      【解决方案2】:

      这是我解决的解决方案:

      #install boost library
      !sudo apt-get install libboost-dev
      #boost-root or boost-include-directory may be here /usr/include/boost
      ####follow below with example
      """Consider your installing mesh from https://github.com/MPI-IS/mesh, it has 
      makefile(filename:makefile)"""
      #--Cloning repository
      !git clone https://github.com/MPI-IS/mesh.git 
      #--Providing permission to admin rights
      !chmod 755 /content/mesh/Makefile
      #--move to its project root directory by the following command
      %cd /content/mesh
      #--run following from mesh-docs for compiling and installing make file
      !BOOST_INCLUDE_DIRS=/usr/include/boost make all
      

      【讨论】:

        猜你喜欢
        • 2021-08-10
        • 2019-06-07
        • 2018-11-06
        • 2021-05-16
        • 2020-10-10
        • 1970-01-01
        • 2022-12-15
        • 2021-11-09
        • 1970-01-01
        相关资源
        最近更新 更多