Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 OSError:'LIBFM_PATH'未设置_Python 2.7 - Fatal编程技术网

Python 2.7 OSError:'LIBFM_PATH'未设置

Python 2.7 OSError:'LIBFM_PATH'未设置,python-2.7,Python 2.7,我最近安装了libFM并使用了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-in

我最近安装了libFM并使用了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).
fm=pywFM.fm(task='regression',num\u iter=5)
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
fm=pywFM.fm(task='regression',num_iter=5)
文件“/Users/raon/anaconda2/lib/python2.7/site packages/pywFM/_init__.py”,第105行,在_init中__
raise OSError(“`LIBFM_PATH`未设置。请安装LIBFM并设置PATH变量(https://github.com/jfloff/pywFM#installing).")
OSError:'LIBFM_PATH'未设置。请安装libFM并设置path变量(https://github.com/jfloff/pywFM#installing).
你知道如何纠正LIBFM_PATH的设置(可能不正确)吗