Python 2.7 如何在google colab中安装mesh

Python 2.7 如何在google colab中安装mesh,python-2.7,google-colaboratory,Python 2.7,Google Colaboratory,我正试图按照repo中的步骤在googlecolab中安装这个网格处理库 及 但当我运行其中一个项目时 我明白了 回溯(最近一次呼叫最后一次): 文件“/content/voca/run_voca.py”,第22行,在 从utils.inference导入推断 文件“/content/voca/utils/inference.py”,第27行,在 从psbody.mesh导入网格 ModuleNotFoundError:没有名为“psbody”的模块 在colab中安装此库的正确方法是什么?以

我正试图按照repo中的步骤在googlecolab中安装这个网格处理库

但当我运行其中一个项目时 我明白了

回溯(最近一次呼叫最后一次):
文件“/content/voca/run_voca.py”,第22行,在
从utils.inference导入推断
文件“/content/voca/utils/inference.py”,第27行,在
从psbody.mesh导入网格
ModuleNotFoundError:没有名为“psbody”的模块

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

以下是我解决的解决方案:

#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

目前这在google colab中也可以使用

!pip install git+https://github.com/MPI-IS/mesh.git
 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'
#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
!pip install git+https://github.com/MPI-IS/mesh.git