NotImplementedError: tostring() has been removed. Please call tobytes() instead的解决办法,
分享于 点击 24904 次 点评:62
NotImplementedError: tostring() has been removed. Please call tobytes() instead的解决办法,
出现这样的错误:
找到错误图中提示的文件:F:\python-2-7\lib\site-packages\PIL\Image.py
通过查找“tostring”,找到如下所示的代码:
改成如下所示:
然后重新运行代码。
相关文章
- 暂无相关文章
用户点评