无法导入名称“ regex_replace”

时间:2019-07-23 07:37:25

标签: python tensorflow

我尝试更新tensorflow的问题是什么?

Traceback (most recent call last):
  File "retrain.py", line 132, in <module>
    import tensorflow_hub as hub
  File "C:\Users\User\Anaconda3\lib\site-packages\tensorflow_hub\__init__.py", line 30, in <module>
    from tensorflow_hub.estimator import LatestModuleExporter
  File "C:\Users\User\Anaconda3\lib\site-packages\tensorflow_hub\estimator.py", line 25, in <module>
    from tensorflow_hub import tf_utils
  File "C:\Users\User\Anaconda3\lib\site-packages\tensorflow_hub\tf_utils.py", line 28, in <module>
    from tensorflow_hub import tf_v1
  File "C:\Users\User\Anaconda3\lib\site-packages\tensorflow_hub\tf_v1.py", line 62, in <module>
    from tensorflow import regex_replace
ImportError: cannot import name 'regex_replace'

0 个答案:

没有答案