簡體   English   中英

如何在 google colab 中安裝網格

[英]How to install mesh in google colab

我正在嘗試按照 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中安裝這個庫的正確方法是什么?

目前這也適用於 google colab

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

這是我解決的解決方案:

#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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM