With -Dpython=OFF
you effectively disabled Python support from ROOT. You need -Dpython=ON -DPYTHON_EXECUTABLE=$(which python3)
to configure with Python 3.x. The -Dpython3=ON
option has been removed since a while, since it didn’t work properly.
2 Likes