1. 程式人生 > >安裝libffm官網推薦的python版本的libffm

安裝libffm官網推薦的python版本的libffm

mkdir pro_pythonffm
cd pro_pythonffm
git clone https://github.com/turi-code/GraphLab-Create-SDK.git sdk
git clone https://github.com/turi-code/python-libffm.git ffm
cd pro_pythonffm/sdk

先往sdk目錄下,mkdir nanosockets,然後從https://github.com/turi-code/SFrame/tree/master/oss_src/nanosockets 複製 async_reply_socket.hpp socket_errors.hpp publish_socket.cpp這三個檔案到nanosockets目錄

接著又報錯:
../sdk/nanosockets/async_reply_socket.hpp:15:38: fatal error: parallel/pthread_tools.hpp: No such file or directory
說明,很有可能https://github.com/turi-code/SFrame/tree/master/oss_src這個目錄下的檔案都需要存在,才能make成功

在sdk目錄下執行:
git clone https://github.com/turi-code/SFrame.git
cd SFrame/oss_src
cp -r ./* ../../

cd pro_pythonffm/ffm