Xgboost: Error - Python Package Installation

Created on 19 Oct 2017  路  1Comment  路  Source: dmlc/xgboost

Environment info

Operating System: Windows 10

Compiler: Visual Studio 15 2017 Win64

Package used (python): Anaconda 5.0

xgboost version used: latest

Steps to reproduce

I have used this nice guide to intall xgboost with VS 2017.

Everything worked fine. The build was successful and I have a file xgboost.dll in the lib folder.

The problem arises when I run python C:\Python\xgboost\python-package\setup.py install from the Anaconda Prompt.

Here is the error:

Install libxgboost from: ['..\\lib\\xgboost.dll']
running install
running bdist_egg
running egg_info
writing xgboost.egg-info\PKG-INFO
writing dependency_links to xgboost.egg-info\dependency_links.txt
writing requirements to xgboost.egg-info\requires.txt
writing top-level names to xgboost.egg-info\top_level.txt
reading manifest file 'xgboost.egg-info\SOURCES.txt'
writing manifest file 'xgboost.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
warning: install_lib: 'build\lib' does not exist -- no Python modules to install

installing package data to build\bdist.win-amd64\egg
running install_data
error: can't copy '..\lib\xgboost.dll': doesn't exist or not a regular file

What have I tried?

  1. Copying the dll to python-package folder. Same error.

Most helpful comment

Solved. I didn't go the the python-package directory. I just made reference to the setup.py file.

cd python-package and then:
python setup.py install
did the job!

>All comments

Solved. I didn't go the the python-package directory. I just made reference to the setup.py file.

cd python-package and then:
python setup.py install
did the job!

Was this page helpful?
0 / 5 - 0 ratings