我正在尝试在Mac上安装fastText,并且能够在终端上运行pip install fastText
且没有错误。我也安装了numpy
和scipy
(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
还有其他我错过的安装过程吗?如果没有,我还能如何解决此问题?