pip install https://github.com/matplotlib/mpl_finance/archive/master.zip 新版matplotlib去掉了finance模块,需要另外安装。