如果有anaconda,直接打开anaconda,选择environments,在里面选择All,搜索matplotlib,下载(apply)matplotlib-inline后,重启jupyter即可。