Python 无法导入tf_语句块-原因:找不到图像

Python 无法导入tf_语句块-原因:找不到图像,python,tensorflow,Python,Tensorflow,尝试导入库tf_sentencepiece以使用以下内容。使用macOS,已通过pip安装了库,并获得: pip install tf_sentencepiece Requirement already satisfied: tf_sentencepiece in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (0.1.82) 导入库时,我收到错误消息: NotFoundError:

尝试导入库tf_sentencepiece以使用以下内容。使用macOS,已通过pip安装了库,并获得:

pip install tf_sentencepiece
Requirement already satisfied: tf_sentencepiece in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (0.1.82)
导入库时,我收到错误消息:

NotFoundError: dlopen(/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tf_sentencepiece/_sentencepiece_processor_ops.so.1.13.1, 6): Library not loaded: @rpath/libtensorflow_framework.so
  Referenced from: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tf_sentencepiece/_sentencepiece_processor_ops.so.1.13.1
  Reason: image not found.
我还收到警告警报:

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tf_sentencepiece/sentencepiece_processor_ops.py:38: UserWarning: No so file is found for [1.14.0] from [1.12.0, 1.11.0, 1.8.0, 1.7.0, 1.10.0, 1.9.0, 1.13.1]
  ', '.join(versions)))
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tf_sentencepiece/sentencepiece_processor_ops.py:39: UserWarning: use the latest version 1.13.1
  warnings.warn('use the latest version %s' % (latest))

你知道问题出在哪里吗

将tensorflow降级到1.13.1版,修复该问题。由于库tf_sentencepiece支持1.13.1版之前的tensorflow

将tensorflow降级到1.13.1版,修复该问题。由于库tf_sentencepiece支持1.13.1版之前的tensorflow