Advanced Installation¶
The only thing required to install trimesh
is numpy.
All other dependencies are ‘soft,’ or trimesh will raise the ImportError
at runtime if a function is called that requires a package that isn’t installed. If you do the most basic install of trimesh
it will only install numpy
:
pip install trimesh
If you’d like most soft dependencies which should install cleanly, you can use the easy
pip extra:
pip install trimesh[easy]
Conda Install¶
The easiest way to get going on the most platforms is through a Python provided by conda. You can install Miniconda easily on all major platforms. Then, to install trimesh
:
conda install -c conda-forge scikit-image shapely rtree pyembree
# install trimesh and all possible dependencies
# if this fails try: pip install trimesh[easy]
pip install trimesh[all]
Ubuntu Notes¶
Blender and openSCAD are soft dependencies used for boolean operations with subprocess, you can get them with apt:
sudo apt-get install openscad blender
Windows Notes¶
The easiest way to get going on Windows is to install the Anaconda Python distribution.