Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python setup.py install 报错 #261

Closed
huichengxiao opened this issue May 25, 2019 · 6 comments
Closed

python setup.py install 报错 #261

huichengxiao opened this issue May 25, 2019 · 6 comments
Assignees

Comments

@huichengxiao
Copy link

首先我在windows文件夹用 Visual Studio2017编译成功了,然后我进入xlearn\python-package, 打开命令行, 输入python setup.py install,结果报错如下:
Traceback (most recent call last):
File "setup.py", line 29, in
LIB_PATH = os.path.relpath(libfile, CURRENT_DIR) for libfile in libpa
nd_lib_path'
]
File "xlearn/libpath.py", line 63, in find_lib_path
'Cannot find xlearn Library in the candidate path'
XLearnLibraryNotFound: Cannot find xlearn Library in the candidate path
我看也有其他用户遇到这个问题,请问怎么解决?

@aksnzhy
Copy link
Owner

aksnzhy commented May 26, 2019

@etveritas Could you please address this issue? Thanks.

@etveritas etveritas self-assigned this May 27, 2019
@etveritas
Copy link
Collaborator

etveritas commented May 27, 2019

@huichengxiao 你好,我想是编译前没有将编译选项改成Release模式,项目默认加载是Debug模式,你可以在VS的导航栏上将其改成Release,然后再对xlearn_api这个项目进行编译。
@aksnzhy 因为我们用编译优化后的版本作为链接库,这在windows上是Release版本,所以只将Release库的目录添加到了候选链接库路径列表。

@mrlonely001
Copy link

version 0.4.4 还未支持pip 安装?

@etveritas
Copy link
Collaborator

@mrlonely001release里我们提供了编译好的二进制库,可以从那里下载安装。

@huichengxiao
Copy link
Author

huichengxiao commented May 29, 2019

@etveritas 谢谢,编译安装成功了

@wmmxk
Copy link

wmmxk commented Jun 27, 2019

@etveritas Could you please address this issue? Thanks.
I also run into this when installing from source. I could compile the source code by running make. When I run ./install-python.sh, I run into this error: XLearnLibraryNotFound: Cannot find xlearn Library in the candidate path.

Then I looked into the setup.py file and found the path for the complied libxlearn_api.so was not detected correctly in the libpath.py. The compiled file was in the "../../build/lib/" folder. So I changed "../../lib" to "../../build/lib". Now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants