Home > command "python setup.py egg_info" failed with error code 1 xgboost

How to fix command "python setup.py egg_info" failed with error code 1 xgboost?

Published on April 12th, 2022

The "python setup.py egg_info" command failed with error code 1 because it is unable to find the xgboost library. This library is required for the command to run successfully.

If you didn't find success with an option above, then try:

  1. try to upgrade setuptools and pip:
  2. python -m pip install --upgrade setuptools
  3. python -m pip install --upgrade pip
  4. try to run the command again:
  5. python setup.py egg_info
  6. try to install xgboost from source:
  7. git clone --recursive https://github.com/dmlc/xgboost
  8. cd xgboost; mkdir build; cd build; cmake .. -DUSE_OPENMP=1
  9. make -j4
  10. try to install xgboost from binary:
  11. wget https://github.com/dmlc/xgboost/releases/download/v0.90/xgboost-0.90-win64.zip
  12. unzip xgboost-0.90-win64.zip
  13. cd xgboost-0.90-win64
  14. try to install xgboost from Anaconda:
  15. conda install -c anaconda py-xgboost