Traceback (most recent call last):


 "/usr/local/bin/conda", line 7, in <module>

from conda.cli.main import main


 "/usr/local/lib/python2.7/site-packages/conda/cli/__init__.py", line 8, in <module>

from .main import main
# NOQA


 "/usr/local/lib/python2.7/site-packages/conda/cli/main.py", line 46, in <module>

from ..base.context import context


 "/usr/local/lib/python2.7/site-packages/conda/base/context.py", line 13, in <module>

from .constants import DEFAULT_CHANNELS, DEFAULT_CHANNEL_ALIAS, ROOT_ENV_NAME, SEARCH_PATH, conda


 "/usr/local/lib/python2.7/site-packages/conda/base/constants.py", line 13, in <module>

from enum import Enum
ImportError: No module named enum

Traceback (most recent call last):


 "vlp/decode_img2txt.py", line 19, in <module>

from pytorch_pretrained_bert.tokenization import BertTokenizer, WhitespaceTokenizer


 "/home/default/ephemeral_drive/work/image_captioning/VLP/pytorch_pretrained_bert/__init__.py", line 6, in <module>

from .optimization_fp16 import FP16_Optimizer_State


 "/home/default/ephemeral_drive/work/image_captioning/VLP/pytorch_pretrained_bert/optimization_fp16.py", line 4, in <module>

from apex.optimizers import FP16_Optimizer
ImportError: cannot import name 'FP16_Optimizer'
