Traceback (most recent call last):


 "/usr/local/bin/pip", line 11, in <module>

load_entry_point('pip==18.0', 'console_scripts', 'pip')()


 "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 484, in load_entry_point

return get_distribution(dist).load_entry_point(group, name)


 "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2707, in load_entry_point

return ep.load()


 "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2325, in load

return self.resolve()


 "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2331, in resolve

module = __import__(self.module_name, fromlist=['__name__'], level=0)


 "/usr/local/lib/python2.7/site-packages/pip/_internal/__init__.py", line 20, in <module>

from pip._vendor.urllib3.exceptions import DependencyWarning


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

from .connectionpool import (


 "/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/connectionpool.py", line 29, in <module>

from .connection import (


 "/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/connection.py", line 39, in <module>

from .util.ssl_ import (


 "/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/__init__.py", line 6, in <module>

from .ssl_ import (


 "/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py", line 8, in <module>

from hashlib import md5, sha1, sha256
ImportError: cannot import name md5

Traceback (most recent call last):


 "/home/chx/.conda/envs/py3.6/bin/bert-base-ner-train", line 11, in <module>

load_entry_point('bert-base==0.0.9', 'console_scripts', 'bert-base-ner-train')()


 "/home/chx/.conda/envs/py3.6/lib/python3.6/site-packages/bert_base-0.0.9-py3.6.egg/bert_base/runs/__init__.py", line 29, in train_ner

from bert_base.train.bert_lstm_ner import train


 "/home/chx/.conda/envs/py3.6/lib/python3.6/site-packages/bert_base-0.0.9-py3.6.egg/bert_base/train/bert_lstm_ner.py", line 18, in <module>

import tensorflow as tf


 "/home/chx/.conda/envs/py3.6/lib/python3.6/site-packages/tensorflow/__init__.py", line 22, in <module>

from tensorflow.python import pywrap_tensorflow
# pylint: disable=unused-import


 "/home/chx/.conda/envs/py3.6/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 49, in <module>

from tensorflow.python import pywrap_tensorflow


 "/home/chx/.conda/envs/py3.6/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>

raise ImportError(msg)
ImportError: Traceback (most recent call last):
