- License :: OSI Approved :: Apache Software License
- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.10
When you know about this project and you want to new install xgboost to support your project or you get trouble as ModuleNotFoundError: No module named "xgboost" or ImportError: cannot import name "xgboost" in your project, let follow this tutorial to install xgboost
In Windows (CMD):
py -m pip --version
In Unix/macOS:
python3 -m pip --version
Ensure pip, setuptools, and wheel are up to date:
In Windows (CMD):
py -m pip install --upgrade pip setuptools wheel
In Unix/macOS:
python3 -m pip install --upgrade pip setuptools wheel
Optional - If you want to install
In Windows (CMD):
- Install virtualenv - if you installed it, please ignore
py -m pip install --user virtualenv
- Create a virtual environment
py -m venv test_xgboost_env
- Active the virtual environment
test_xgboost_env\Scripts\active
In Unix/macOS:
- Install virtualenv - if you installed it, please ignore
pip3 install virtualenv
- Create a virtual environment
python3 -m venv test_xgboost_env
- Active the virtual environment
source test_xgboost_env/bin/active
To install xgboost on Windows(CMD):
py -m pip install xgboost
To install xgboost on Unix/macOs:
pip install xgboost
Example:
pip install xgboost==0.4a12 pre-release
Please see the version list below table:
Version | Released date | Command |
---|---|---|
xgboost 1.6.1 | 2022-05-09T09:31:53 | Windows: Unix/macOs:
|
xgboost 1.6.0 | 2022-04-16T04:09:35 | Windows: Unix/macOs:
|
xgboost 1.5.2 | 2022-01-17T16:17:38 | Windows: Unix/macOs:
|
xgboost 1.5.1 | 2021-11-24T19:51:13 | Windows: Unix/macOs:
|
xgboost 1.5.0 | 2021-10-17T17:15:49 | Windows: Unix/macOs:
|
xgboost 1.4.2 | 2021-05-13T11:49:10 | Windows: Unix/macOs:
|
xgboost 1.4.1 | 2021-04-20T01:45:33 | Windows: Unix/macOs:
|
xgboost 1.4.0 | 2021-04-12T18:26:19 | Windows: Unix/macOs:
|
xgboost 1.3.3 | 2021-01-20T13:31:37 | Windows: Unix/macOs:
|
xgboost 1.3.2 | 2021-01-18T05:41:21 | Windows: Unix/macOs:
|
xgboost 1.3.1 | 2020-12-22T09:01:48 | Windows: Unix/macOs:
|
xgboost 1.3.0.post0 | 2020-12-09T18:22:42 | Windows: Unix/macOs:
|
xgboost 1.2.1 | 2020-10-14T01:11:52 | Windows: Unix/macOs:
|
xgboost 1.2.0 | 2020-08-23T02:46:01 | Windows: Unix/macOs:
|
xgboost 1.1.1 | 2020-06-07T04:14:35 | Windows: Unix/macOs:
|
xgboost 1.1.0 | 2020-05-17T08:23:22 | Windows: Unix/macOs:
|
xgboost 1.0.2 | 2020-03-04T01:26:30 | Windows: Unix/macOs:
|
xgboost 1.0.1 | 2020-02-21T17:08:10 | Windows: Unix/macOs:
|
xgboost 1.0.0 | 2020-02-20T05:19:04 | Windows: Unix/macOs:
|
xgboost 0.90 | 2019-05-20T21:41:06 | Windows: Unix/macOs:
|
xgboost 0.82 | 2019-03-05T05:29:53 | Windows: Unix/macOs:
|
xgboost 0.81 | 2018-11-05T20:07:16 | Windows: Unix/macOs:
|
xgboost 0.80 | 2018-08-14T04:36:08 | Windows: Unix/macOs:
|
xgboost 0.72.1 | 2018-07-08T20:18:56 | Windows: Unix/macOs:
|
xgboost 0.71 | 2018-04-11T12:54:50 | Windows: Unix/macOs:
|
xgboost 0.7.post4 | 2018-03-26T06:48:01 | Windows: Unix/macOs:
|
xgboost 0.7.post3 | 2018-01-02T10:37:31 | Windows: Unix/macOs:
|
xgboost 0.7.post2 | 2018-01-01T17:22:39 | Windows: Unix/macOs:
|
xgboost 0.7.post1 | 2018-01-01T14:48:07 | Windows: Unix/macOs:
|
xgboost 0.7 | 2018-01-01T14:35:56 | Windows: Unix/macOs:
|
xgboost 0.6 | 2016-08-09T07:20:17 | Windows: Unix/macOs:
|
Download the distribution file from xgboost-1.6.1.tar.gz or the specific xgboost version in the below list of distribution
After that, install by command:
On Windows(CMD):
py -m pip install <path_to_xgboost_downloaded_file>
On Unix/macOs:
pip install <path_to_xgboost_downloaded_file>
List distribution:
Project link:
- Homepage