Ubuntu users must install Python headers (apt install python3-dev) in addition to the regular python3 package. If you don't use the latest Zivid SDK version you need to manually specify the version.
If you are using (Ana-)conda (or mamba), you can also obtain Netgraph from conda-forge: Please raise an issue. Include any relevant code and data in a minimal, reproducible example. If applicable, ...