无法导入tf_sentencepiece原因:找不到图像

2024-05-23 16:50:02 发布

您现在位置:Python中文网/ 问答频道 /正文

尝试导入库tfu sentencepiece以使用以下link。使用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)

导入库时,我收到错误消息:

^{pr2}$

我还收到警告警报:

/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))

有什么问题吗?在


Tags: pippylibpackagestflibrarysiteframework