It should indeed, you need to install the Python 3 headers though (if I recall correctly, this would be in python3.7-dev/python3.7-devel or rh-python37-devel, depending on your OS - I’m guessing Centos, so I think it’s the latter). If you can install on 2.7 that would suggest you have all the other needed components.
Hope that helps,
Ellis