我有下面的问题(我在MAC上)
我可以用我的终端从python2.7或python3.6导入xgboost,但问题是我无法在我的Jupyter笔记本上导入它 .
import xgboost as xgb
ModuleNotFoundError Traceback(最近一次调用last)in()----> 1将xgboost导入为xgb
ModuleNotFoundError:没有名为'xgboost'的模块
虽然我写道:
!pip3 install xgboost
它打印出:
要求已经满足:xgboost in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/xgboost-0.6-py3.6.egg要求已经满足:numpy in / Library / Frameworks / Python .framework / Versions / 3.6 / lib / python3.6 / site-packages(来自xgboost)要求已经满足:scipy in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages(from xgboost)
请帮助我到处搜索:(