Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install xgboost in Anaconda Python (Windows platform)?

I am a new Python user. I downloaded the latest Anaconda 3 2.4.1 (Python 3.5) from the below link: https://www.continuum.io/downloads

My PC Configurations are: Windows 10, 64 bit, 4GB RAM

I have spent hours trying to find the right way to download the package after the 'pip install xgboost' failed in the Anaconda command prompt but couldn't find any specific instructions for Anaconda.

Can anyone help on how to install xgboost from Anaconda?

like image 817
Siddharth Vashishtha Avatar asked Feb 01 '16 19:02

Siddharth Vashishtha


People also ask

How do I install XGBoost on Anaconda prompt?

Installing xgboost in AnacondaStep 1: Install the current version of Python3 in Anaconda. Step 2: Check pip3 and python3 are correctly installed in the system. Step 3: To install xgboost library we will run the following commands in conda environment.


1 Answers

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:

enter image description here

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 
like image 91
deltascience Avatar answered Oct 17 '22 06:10

deltascience