分享一些在Pytorch、TensorFlow、PuddlePuddle、Sklearn、Xgboost、Lightgbm、Numpy、Pandas、Matplotlib等Python主流库以及Python自身遇到的错误和对应的解决方案。
Python
‘gbk’ codec can’t decode byte 0xbf in position 2: illegal multibyte sequence
编码解码问题,解决参考:Python读取文本出现问题 gbk codec can’t decode byte
TypeError: a bytes-like object is required, not ‘str’
同样是编码解码问题,参考:成功解决TypeError: a bytes-like object is required, not ‘str’
Jupyter: IOPub data rate exceeded
遇到错误,The notebook server will temporarily stop sending output,是Jupyter内存的问题,解决方案参考:处理Jupyter Notebook报错:IOPub data rate exceeded
**