无法加载fasttext_pybind库(pip安装)

时间:2019-11-07 14:09:06

标签: python pip installation package fasttext

我正在尝试在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", line 12, 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

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

0 个答案:

没有答案