python - xgboost + pipenv = </3

标签 python anaconda xgboost pipenv

我喜欢 xgboost。我喜欢 pipenv。但他们并不相爱:(

pipenv 安装 xgboost

Error: An error occurred while installing xgboost! Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-9cab91je/xgboost/

我已经安装了 compiled version of xgboost with anaconda但我就是无法让它与 pipenv 很好地配合......

有什么想法吗?

谢谢!

最佳答案

在 macOS (10.13.6) 上,我通过使用 brew 安装 cmake 来解决这个问题。我有相同的(-ish)错误消息,但完整的错误输出包括对找不到 cmake 命令的引用。

brew install cmake

我的错误信息:

'ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.'

关于python - xgboost + pipenv = </3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48432558/

相关文章:

python - Nginx 和 uWSGI : Connection refused and 502 Bad Gateway error

python - FastAPI RedirectResponse 自定义 header

python - SQLAlchemy 关联表(关联对象模式)引发 IntegrityError

python-3.x - Keras `evaluate` 函数在不同机器上返回错误的准确度

python-3.x - xgboost 错误 : Check failed: ! auc_error AUC:数据集仅包含 pos 或 neg 样本'

python - 如何使用 matplotlib 绘制与 y = x 线平行的线?

python - 我可以在 MacOS 上安装 Anaconda 来覆盖损坏的 Anaconda 安装吗?

python - 属性错误: module ‘xgboost’ has no attribute ‘XGBRegressor’

python-2.7 - 在 python 中使用 XGBoost 时出现 Windows 错误

python - 有一种快速的方法可以知道 Anaconda 中是否安装了一个包