我已经用pip安装了tf-sentencepiece,当我运行这行代码时:
import tf_sentencepiece as tfs我得到以下错误:
tensorflow.python.framework.errors_impl.NotFoundError: /home/ubuntu/.local/lib/python2.7/site-packages/tf_sentencepiece/_sentencepiece_processor_ops.so: undefined symbol: _ZN10tensorflow20OpKernelConstruction21CtxFailureWithWarningEPKciRKNS_6StatusE你知道为什么我不能导入库吗?谢谢。
发布于 2018-10-12 12:59:44
通过将tensorflow版本更改为1.10.0解决了此问题。
https://stackoverflow.com/questions/52758654
复制相似问题