我正在尝试按照仓库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中安装该库的正确方法是什么?
答案 0 :(得分:1)
目前这也适用于 google colab
!pip install git+https://github.com/MPI-IS/mesh.git
答案 1 :(得分:0)
这是我解决的解决方案:
#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