在conda创建的环境中安装xgboost pip install xgboost 在jupyter notebook 添加新的虚拟环境 conda install nb_conda // jupyter notebook 可以检测到 新的虚拟环境 传送门:https://www.jianshu.com/p/d9df1b3bd259