title: ImportError: cannot import name 'regex_replace'
body: <p>I'm totally new to python, while run my program i got an error..</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/local/lib/python3.5/dist-packages/tensorflow_hub/tf_v1.py", line 29, in &lt;module&gt;
      from tensorflow.compat.v1 import *  
  ImportError: No module named 'tensorflow.compat'
  
  During handling of the above exception, another exception occurred:
  
      Traceback (most recent call last):
        File "train.py", line 5, in &lt;module&gt;
          import tensorflow_hub as hub
        File "/usr/local/lib/python3.5/dist-packages/tensorflow_hub/__init__.py", line 30, in &lt;module&gt;
          from tensorflow_hub.estimator import LatestModuleExporter
        File "/usr/local/lib/python3.5/dist-packages/tensorflow_hub/estimator.py", line 25, in &lt;module&gt;
          from tensorflow_hub import tf_utils
        File "/usr/local/lib/python3.5/dist-packages/tensorflow_hub/tf_utils.py", line 28, in &lt;module&gt;
          from tensorflow_hub import tf_v1
        File "/usr/local/lib/python3.5/dist-packages/tensorflow_hub/tf_v1.py", line 63, in &lt;module&gt;
          from tensorflow import regex_replace
      ImportError: cannot import name 'regex_replace'
  </code></pre>
  
  <p>my <code>train.py</code> is</p>
  
  <pre><code>import os
  import numpy as np
  import pandas as pd
  import tensorflow as tf
  import tensorflow_hub as hub
  import json
  import pickle
  import urllib
  
  from sklearn.preprocessing import LabelBinarizer
  
  print(tf.__version__)
  </code></pre>
  
  <p>without import <code>tensorflow_hub</code> it's working fine.. but for my algorithm it must.. I searched many links but I couldn't get proper solution.  please give me small hint to solve my problem..</p>