简体   繁体   中英

How to install mesh in google colab

I am trying to install this mesh processing library in google colab following the steps in the repo https://github.com/MPI-IS/mesh

apt-get install libboost-all-dev

and

make
make install

but when I run one of the depending projects https://github.com/TimoBolkart/voca I get

 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'

what is the proper way to install this library in colab?

目前这也适用于 google colab

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

Here is the solution that I solved:

#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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM