Python+Numpy+OpenGL: fast, scalable and beautiful scientific visualization
BSD-3-CLAUSE License
Installing via pip
on an Apple Silicon/M1 Mac may fail due to an incompatibility with the pre-generated Cython code for the triangle
dependency. As a workaround, this package and glumpy can be downloaded from GitHub and installed manually, like this:
::
pip install numpy Cython PyOpenGL
git clone --recurse-submodules https://github.com/drufat/triangle cd triangle python setup.py install
cd .. git clone https://github.com/glumpy/glumpy cd glumpy python setup.py install
At this point glumpy should be installed, but if you try to run one of the examples (e.g. python examples/hello-world.py
) you may receive RuntimeError: Freetype library not found
. This occurs if you have installed freetype via Homebrew, which does not add the library directory to the system path. To fix this add the path manually:
::
export DYLD_LIBRARY_PATH=$(brew --prefix freetype)/lib:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$(freetype-config --prefix)/lib:$DYLD_LIBRARY_PATH
python examples/hello-world.py # works now!