我已经使用以下命令在MacOS 10.9Mavericks中安装了jupyter notebook
pip3 install jupyter我可以导入一些库,如numpy,pandas,并正常运行Jupiter notebook,但是,如果我导入了模块statsmodel,它会显示没有名为“statsmodel”的模块。
如何在jupyter-notebook中运行已安装的库统计模型?

发布于 2017-10-23 21:26:43
我也有同样的问题。这是因为模块是为python2安装的,而不是为您正在使用的python3安装的。
找到与python3相关的jupyter存储箱。
$jupyter --paths我的位置是/usr/local/Cellar/python3/3.5.2_3/bin run:
$python3 -mpip install statsmodels干杯
https://stackoverflow.com/questions/43856573
复制相似问题