我最近安装了libFM并使用pywFM
https://pypi.python.org/pypi/pywFM
我按照说明操作,并将LIBFM_PATH设置为
export LIBFM_PATH=/Users/raon/Dropbox/Python/libfm/libfm/bin/
这是/ bin /文件夹的位置
当我尝试运行上面链接中提供的示例时,出现以下错误:
fm = pywFM.FM(task='regression', num_iter=5)
Traceback (most recent call last):
File "<ipython-input-14-d2c7380843b8>", line 1, in <module>
fm = pywFM.FM(task='regression', num_iter=5)
File "/Users/raon/anaconda2/lib/python2.7/site-packages/pywFM/__init__.py", line 105, in __init__
raise OSError("`LIBFM_PATH` is not set. Please install libFM and set the path variable (https://github.com/jfloff/pywFM#installing).")
OSError: `LIBFM_PATH` is not set. Please install libFM and set the path variable (https://github.com/jfloff/pywFM#installing).
知道如何纠正LIBFM_PATH(可能是错误的)设置吗?