python - 无法再导入 xgboost

标签 python xgboost

几个月前我已经安装了 Anaconda 3 和许多软件包,包括 xgboost 并且运行良好。但现在 xgboost 停止工作:导入失败并显示

OSError: /home/user/anaconda3/lib/python3.5/site-packages/scipy/sparse/../../../../libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/user/anaconda3/lib/python3.5/site-packages/xgboost/./lib/libxgboost.so)

我确实在我的 lib 目录中看到了 libstdc++.so.6 。可能出了什么问题?

最佳答案

我终于解决了。这就是我所做的

conda install libgcc

来自this issue .

关于python - 无法再导入 xgboost,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47927755/

相关文章:

python - 在列表框中显示组合框中的用户选择时出现问题

python - 在 xgboost 上使用 shap 时出现 UnicodeDecodeError

python - 尝试打印人类可读的 ascii 字符串

python - XGBoost 找不到 sklearn

c++ - 在 C++ 中创建 xgboost Dmatrix

python - 如何设置带有评估集的学习xgboost?

cortana-intelligence - 有人有在 Azure ML Studio 环境中实现 R 包 XGBoost 的经验吗?

python - SQLAlchemy MySQL 重复键更新

python - 根据优先级在 Pandas 数据框中创建二进制列

python - 如何使用 Python 中的列表生成所有可能的排列对?