- 【错误1】raise ParserError("Unknown string format: %s", timestr)
- 【错误2】Excel file format cannot be determined, you must specify an engine manually.
- 【错误3】In FT2Font: Can not load face
- 【错误4】plt画图中文字符显示
- 【错误5】plt画图不显示负号
- 【错误6】No module named 'matplotlib_inline'
> File “D:ProgramsMiniconda3envspytorchlibsite-packagesdateutilparser_parser.py”,
line 643, in parse
raise ParserError(“Unknown string format: %s”, timestr) dateutil.parser._parser.ParserError: Unknown string format:
2010-05-26,三
【解决】
df.index=pd.to_datetime(df.index,errors='ignore')
【错误2】Excel file format cannot be determined, you must specify an engine manually.更建议对日期做一下处理再转换,不然做时间序列分析的时候可能会不得劲。
【原因】
1.可能有其他的软件正在使用这个文件。
【解决】
【错误3】In FT2Font: Can not load face1.关闭其他使用的软件
2.另存csv
【原因】
1.可能字体文件损坏
【解决】
【错误4】plt画图中文字符显示到matplotlib库 *Libsite-packagesmatplotlibmpl-datafontsttf 中检查是否有字体大小为0kb
如有,可以去网上下载一个替换
【解决】
【错误5】plt画图不显示负号设置字体
plt.rcParams[‘font.family’] = ‘SimHei’
【解决】
【错误6】No module named ‘matplotlib_inline’plt.rcParams[‘axes.unicode_minus’] =False
首先进入anaconda3存放所有库的文件夹,一般是anaconda3Libsite-packages,是你的home文件夹。进入该文件夹之后,用gitbash下载github上的matplotlib_inline库
$ git clone https://github.com/ipython/matplotlib-inline
下载之后,进入matplotlib-inline 将matplotlib_inline文件夹复制到~anaconda3Libsite-packages(为了使d2l可以找到该库)



