Library not loaded: @rpath/Python3.framework/Versions/3.9/Python3

Hi, I try to install paraview (tag: v5.12.0-RC3) on Mac.
The code is ok to build, but I got this error when I execute the executable file:

$ ./bin/ 
dyld[25562]: Library not loaded: @rpath/Python3.framework/Versions/3.9/Python3
  Referenced from: <D4B73448-3BB4-394D-BB95-57534A33E26A> /Users/zw1/Documents/cworkspace/build/paraview/bin/
  Reason: tried: '/Users/zw1/Documents/cworkspace/build/paraview/lib/Python3.framework/Versions/3.9/Python3' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/zw1/Documents/cworkspace/build/paraview/lib/Python3.framework/Versions/3.9/Python3' (no such file), '/Applications/' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/' (no such file), '/Users/zw1/Documents/cworkspace/build/paraview/lib/Python3.framework/Versions/3.9/Python3' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/zw1/Documents/cworkspace/build/paraview/lib/Python3.framework/Versions/3.9/Python3' (no such file), '/Applications/' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/' (no such file)
Abort trap: 6

This is the path of my python3

zw1@MAC132276 3.9$ ls
Headers        Python3        Resources      _CodeSignature bin            include        lib            share
zw1@MAC132276 3.9$ pwd

This is the command to build the paraview


It seems that the paraview could not find the right path of the python3 during the build process, could you provide some help about it?


I found that the rpath of the executable is


It can work if I reset it to


when compiling the executable file.

Yes, rpath management is a distributor/packager thing. We cannot possibly know all possible end-user layouts to set up rpaths properly without external input.