简体   繁体   English

无法安装 xgboost Python 3 Mac

[英]Unable to install xgboost Python 3 Mac

I am facing issues while installing xgboost on MacOS 10.10.5.我在 MacOS 10.10.5 上安装 xgboost 时遇到问题。 I am using Python 3.6.3.我正在使用 Python 3.6.3。 I already tried pip install xgboost but received following error:我已经尝试过pip install xgboost但收到以下错误:

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/tz/42d7kx0j74jf6j2qqczg6cqm0000gn/T/pip-build-58t0kofo/xgboost/

Am I doing anything wrong?我做错了什么吗?

Not sure what the problem was initially but I found a workaround to my problem.不确定最初是什么问题,但我找到了解决问题的方法。 Following line works like a charm!以下行就像一个魅力! However, You need package manager Anaconda.但是,您需要包管理器 Anaconda。

conda install -c conda-forge xgboost 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM