解决方法 不要直接pip 安装xgboost,而是使用conda安装py-xgboost pip uninstall xgboost conda install py-xgboost 然后重启 jupyter!