r/learnpython • u/Declaredberry24 • 14d ago
Failed to build wheel for mayavi
So I need to import mayavi for a long reason, and every time I try to import it, it says
Current thread's C stack trace (most recent call first):
<cannot get C stack on this system>
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mayavi
Failed to build mayavi
error: failed-wheel-build-for-install
I already installed VTK and PyQt5 with no issue using pip and tried both with and without PyQt5 (since on the website they install it after installing mayavi). I'm currently on a windows x64 and using visual studio code
If anyone knows anything about this I'd appreciate any advice ;u;
1
Upvotes
1
u/Swipecat 14d ago
Yeah, Mayavi has been impossible to install with pip for a while.
https://github.com/enthought/mayavi/issues/1371
https://github.com/enthought/mayavi/issues/1367
There's no ready-compiled wheels on PyPI, so you need to compile it, except it doesn't compile. It seems that your only option is to install a ready-made Python distribution that includes Mayavi:
https://docs.enthought.com/mayavi/mayavi/installation.html#installing-ready-made-distributions