Problem with pythonlibs

I solved the problem installing again python3.6 with yum from the Software Collection. The installation is in another directory and pointing executable and library to this directory I was able to build.
I don’t think I will ever know what was wrong with the first python3.6 installation (which is working fine beside ROOT compilation).
Thanks anyway.
Alberto