Operating System: Windows 10
Compiler: Visual Studio 15 2017 Win64
Package used (python): Anaconda 5.0
xgboost
version used: latest
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
dll
to python-package
folder. Same error.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!
Most helpful comment
Solved. I didn't go the the
python-package
directory. I just made reference to thesetup.py
file.cd python-package
and then:python setup.py install
did the job!