xlearn icon indicating copy to clipboard operation
xlearn copied to clipboard

xlearn.libpath.XLearnLibraryNotFound: Cannot find xlearn Library in the candidate path

Open xxllp opened this issue 6 years ago • 7 comments

python包安装后,跑个demo 报错

xxllp avatar Feb 12 '18 03:02 xxllp

你可以添加

export PYTHONPATH=你的xlearn路径/python

到~/.bashrc 下试试。

记得 source ~/.bashrc

aksnzhy avatar Feb 13 '18 04:02 aksnzhy

我在windows 上装出现的问题,但是我在linux下安装也有其他问题,python 包安装好了调用会报错。建议你们整个whl的安装包,省得大家编译。谢谢

xxllp avatar Feb 13 '18 04:02 xxllp

xLearn 目前还不能支持 windows,可能会在下一个版本里开始支持。

aksnzhy avatar Feb 13 '18 05:02 aksnzhy

这个倒没啥,但是安装还是比较蛋疼。这个能支持多大的数据

xxllp avatar Feb 13 '18 05:02 xxllp

在单机上我们测试过 1 TB 的数据。

aksnzhy avatar Feb 13 '18 05:02 aksnzhy

xLearn does not currently support Windows and may start supporting it in the next release.

I have problems with Windows, but I have other problems with linux installation. If the python package is installed, the call will report an error. I suggest you install the entire whl package, saving everyone to compile. Thank you

Is this still the case? I used the Cygwin installation instructions and used the pypi source file to install and am getting the same error.

sambling avatar Jan 21 '19 01:01 sambling

I faced the same issue and finally managed to install xlearn on Windows 10 with MINGW64 (Git Bash) and Visual Studio 16 2019. Here are the commands I used :

git clone https://github.com/aksnzhy/xlearn.git
cd xlearn
mkdir build
cd build
cmake ../
cmake --build .

The build should end with an output like this : ######## xlearn_train.vcxproj -> ....\xlearn\build\Debug\xlearn_train.exe Building Custom Rule ..../xlearn/CMakeLists.txt_ ########

cp ./test/c_api/Debug/xlearn_api.dll ../python-package/xlearn/   # THIS IS THE KEY COMMAND TO SOLVE THE PROBLEM BY MAKING THE DLL VISIBLE
cd ../python-package/
pip install .

pip install should end with an output like this : ######### Successfully built xlearn Installing collected packages: xlearn Successfully installed xlearn-0.4.4 #########

Then the import xlearn should pass ok. And you can run this example script to test your installation : python ../demo/classification/scikit_learn_demo/example_FM_wine.py

But I still have the issue that it is working only when running the code from command like with the command above. The same code as in the example does not run inside a Jupyter notebook or inside Pycharm (with same Python 3.8). In Jupyter or Pycharm the kernel crashes when calling .fit() ...

ismael-elatifi avatar Dec 09 '20 14:12 ismael-elatifi