无法加载fasttext_pybind库(pip安装)

我正在尝试在Mac上安装fastText,并且能够在终端上运行pip install fastText且没有错误。我也安装了numpyscipy(2个要求)。但是,当我尝试将模块加载到Python文件中时,出现以下错误:

Traceback (most recent call last):
  File "[[[the path of my Python file]]]",line 1,in <module>
    import fasttext
  File "/library/Python/2.7/site-packages/fasttext/__init__.py",line 12,in <module>
    from .FastText import train_supervised
  File "/library/Python/2.7/site-packages/fasttext/FastText.py",in <module>
    import fasttext_pybind as fasttext
ImportError: dlopen(/library/Python/2.7/site-packages/fasttext_pybind.so,2): library not loaded: @rpath/libc++.1.dylib
  Referenced from: /library/Python/2.7/site-packages/fasttext_pybind.so
  Reason: image not found

还有其他我错过的安装过程吗?如果没有,我还能如何解决此问题?

xuchong891101 回答:无法加载fasttext_pybind库(pip安装)

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3144194.html

大家都在问