1. 程式人生 > >centOS pip install xgboost Command "python setup.py egg_info" failed 解決記錄

centOS pip install xgboost Command "python setup.py egg_info" failed 解決記錄

翻了兩個小時,一點點試,最後看到https://github.com/dmlc/xgboost/issues/2761裡面提到了更新gcc,查看了一下伺服器的gcc是4.7的,於是按照這裡https://stackoverflow.com/questions/36327805/how-to-install-gcc-5-3-with-yum-on-centos-7-2?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa的方式升級了gcc,問題解決。


更新gcc程式碼如下

sudo yum install centos-release-scl
sudo yum install devtoolset-7-gcc*
scl enable devtoolset-7 bash
which gcc
gcc --version