cjlin1 / libsvm

LIBSVM -- A Library for Support Vector Machines
https://www.csie.ntu.edu.tw/~cjlin/libsvm/
BSD 3-Clause "New" or "Revised" License
4.52k stars 1.64k forks source link

LIBSVM library not found #202

Open ghs01023 opened 11 months ago

ghs01023 commented 11 months ago

我用pyinstaller打包后运行提示共享库缺失libsvm.so.3 no such file 我找到了解决方法:把svm.py里CDLL里的路径 libsvm = CDLL(path.join(dirname, '../../libsvm.so.3')) 换成了自己创建的一个路径/home/abc/libsvm.so.3 然后重新打包一次就可以找到这个共享库了,作者有更好的解决办法吗?希望后面的人不会再遇到这个问题

cjlin1 commented 10 months ago

On 2023-08-22 16:59, George wrote:

我用pyinstaller打包后运行提示共享库缺失libsvm.so.3 no

Can you please show more details about what you want to do and how the error occurs? Thanks

such file 我找到了解决方法:把svm.py里CDLL里的路径 libsvm = CDLL(path.join(dirname, '../../libsvm.so.3')) 换成了自己创建的一个路径/home/abc/libsvm.so.3 然后重新打包一次就可以找到这个共享库了,作者有更好的解决办法吗?希望后面的人不会再遇到这个问题

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you are subscribed to this thread.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/cjlin1/libsvm/issues/202", "url": "https://github.com/cjlin1/libsvm/issues/202", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Links:

[1] https://github.com/cjlin1/libsvm/issues/202 [2] https://github.com/notifications/unsubscribe-auth/ABI3BHQTLPTN5EJXE43Q5GDXWSULHANCNFSM6AAAAAA3Z4JKZM