How to install xgboost in Anaconda Python (Windows platform)?
- Download package from this website.
I downloaded
xgboost-0.6-cp36-cp36m-win_amd64.whl
for anaconda 3 (python 3.6) - Put the package in directory
C:\
- Open anaconda 3 prompt
- Type
cd C:\
- Type
pip install C:\xgboost-0.6-cp36-cp36m-win_amd64.whl
- Type
conda update scikit-learn
The easiest way (Worked for me) is to do the following:
anaconda search -t conda xgboost
You will get a list of install-able features like this:
for example if you want to install the first one on the list mndrake/xgboost (FOR WINDOWS-64bits):
conda install -c mndrake xgboost
If you're in a Unix system you can choose any other package with "linux-64" on the right.
- Update on 22/10/2020:
Without searching in conda list of channels, you can install it using (source: https://anaconda.org/anaconda/py-xgboost) :
conda install -c anaconda py-xgboost
Anaconda's website addresses this problem here: https://anaconda.org/anaconda/py-xgboost.
conda install -c anaconda py-xgboost
This fixed the problem for me with no problems.
After trying some things the only thing that worked for me is:
conda install -c anaconda py-xgboost