glumpy

Python+Numpy+OpenGL: fast, scalable and beautiful scientific visualization

BSD-3-CLAUSE License

Downloads
893
Stars
1.2K

Installing on M1 Macs

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:

::

dependencies

pip install numpy Cython PyOpenGL

manually install triangle

git clone --recurse-submodules https://github.com/drufat/triangle cd triangle python setup.py install

manually install glumpy

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:

::

either

export DYLD_LIBRARY_PATH=$(brew --prefix freetype)/lib:$DYLD_LIBRARY_PATH

or

export DYLD_LIBRARY_PATH=$(freetype-config --prefix)/lib:$DYLD_LIBRARY_PATH

python examples/hello-world.py # works now!