环境
win8.1, python3.7, jupyter notebook
问题描述
1 import pandas as pd
2 import matplotlib.pyplot as plt
3...在cmd命令窗口下确认:
?
没有报错, 说明安装成功, 而且能够被成功导入.
2....在pycharm中能够成功运行, 而在jupyter notebook中不能运行, 看起是IDE的问题, 那么两者存在什么差异呢:
就我个人电脑而言, pycharm是我刚刚启动的(安装好matplotlib...后), 而jupyter notebook已经好几天没有关闭过了(安装matplotlib前后都没有关闭过), 为了确保两者条件统一, 试着重启下jupyter notebook....看起来问题出在: 安装matplotlib之后没有重启jupyter notebook.