Is it possible that you have a file named math.py
in the same directory as the program you are running? If so python tries to import it before the math module.
Solution: Just rename it to something else.
Tip: In the future try to name your modules in a non-conflicting way.