
Traceback (most recent call last):


 "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "/usr/lib/python3.6/runpy.py", line 85, in _run_code

exec(code, run_globals)


 "/home/ubuntu/Python36Env/lib/python3.6/site-packages/pip/__main__.py", line 23, in <module>

from pip._internal.cli.main import main as _main
# isort:skip # noqa


 "/home/ubuntu/Python36Env/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 5, in <module>

import locale


 "/home/ubuntu/Python36Env/lib/python3.6/locale.py", line 16, in <module>

import re


 "/home/ubuntu/Python36Env/lib/python3.6/re.py", line 142, in <module>

class RegexFlag(enum.IntFlag):

AttributeError: module 'enum' has no attribute 'IntFlag'

Traceback (most recent call last):


 "/usr/lib/python3.6/xml/etree/ElementTree.py", line 789, in _get_writer

write = file_or_filename.write
AttributeError: 'str' object has no attribute 'write'
