Playbook error

I am getting error when executing playbook in ansible tower. please help.

Traceback (most recent call last):

2
File “/usr/local/bin/ansible”, line 36, in

3
import shutil

4
File “/usr/local/lib/python3.6/shutil.py”, line 10, in

5
import fnmatch

6
File “/usr/local/lib/python3.6/fnmatch.py”, line 14, in

7
import re

8
File “/usr/local/lib/python3.6/re.py”, line 142, in

9
class RegexFlag(enum.IntFlag):

10
AttributeError: module ‘enum’ has no attribute ‘IntFlag’