This is an automated email from the ASF dual-hosted git repository.

masahi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new fbb7b5d1a0 Add xgboost version restriction (#12050)
fbb7b5d1a0 is described below

commit fbb7b5d1a0d82acb1f581dd2ec362b4dcad2638e
Author: Jiabei Zhao <[email protected]>
AuthorDate: Mon Jul 11 17:00:21 2022 +0800

    Add xgboost version restriction (#12050)
    
    Co-authored-by: jiabeizhao <[email protected]>
---
 docs/install/from_source.rst | 4 ++--
 python/gen_requirements.py   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/install/from_source.rst b/docs/install/from_source.rst
index 92795da9a7..4b5810cb20 100644
--- a/docs/install/from_source.rst
+++ b/docs/install/from_source.rst
@@ -323,7 +323,7 @@ like ``virtualenv``.
 
    .. code:: bash
 
-       pip3 install --user tornado psutil xgboost cloudpickle
+       pip3 install --user tornado psutil 'xgboost<1.6.0' cloudpickle
 
 Note on M1 macs, you may have trouble installing xgboost / scipy. scipy and 
xgboost requires some additional dependencies to be installed,
 including openblas and its dependencies. Use the following commands to install 
scipy and xgboost with the required dependencies and
@@ -339,7 +339,7 @@ configuration. A workaround for this is to do the following 
commands:
 
         pip install scipy --no-use-pep517
 
-        pip install xgboost
+        pip install 'xgboost<1.6.0'
 
 Install Contrib Libraries
 -------------------------
diff --git a/python/gen_requirements.py b/python/gen_requirements.py
index 6cb92921f3..7e2c3e2186 100755
--- a/python/gen_requirements.py
+++ b/python/gen_requirements.py
@@ -277,7 +277,7 @@ CONSTRAINTS = [
     ("torch", None),
     ("torchvision", None),
     ("tornado", None),
-    ("xgboost", ">=1.1.0"),  # From PR #4953.
+    ("xgboost", ">=1.1.0,<1.6.0"),  # From PR #4953 & Issue #12009
 ]
 
 
################################################################################

Reply via email to