Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4636

Python • Raspberry PI5 + Python + VTK

$
0
0
I'm not able to find a VTK Python package for Raspberry Pi 5 (Python 3.11.2).
How to install it ?
There is some pre-made package and instructions to install it ?

PS:
I've tried to make VTK from the vtk repository in a virtual env to not touche original python installation:

Code:

python3 -m venv /home/<user>/develop/venvcd /home/<user>/develop/venv/bin./pip3 install numpy./pip3 install PySide6sudo apt install -y build-essential mesa-common-dev mesa-utils freeglut3-dev ninja-build git cmakecd /home/<user>mkdir developcd developgit clone --recursive https://gitlab.kitware.com/vtk/vtk.gitcd ..mkdir buildcd buildcmake -GNinja -DVTK_WHEEL_BUILD=ON -DVTK_WRAP_PYTHON=ON /data/vtkninjacp -R /home/<user>/develop/build/lib /home/<user>/develop/venv/lib/python3.11/site-packagescp -R /home/<user>/develop/build/lib /home/<user>/develop/venv/lib/python3.11/
Something works but python program crashes after some movements of OpenGL scene and I've got a lot of error logs.
Untitled.jpg

Statistics: Posted by shineworld — Wed Jun 05, 2024 7:31 am — Replies 0 — Views 1



Viewing all articles
Browse latest Browse all 4636

Trending Articles