简体   繁体   English

为什么这个 ValueError: Could not save to PNG for display in python3.0 显示?

[英]why this ValueError: Could not save to PNG for display in python3.0 is showing?

I am a complete newbie to this coding and programming and I need your help guys.我是这个编码和编程的新手,我需要你们的帮助。

blue = Image.open('blue_color.png')
blue.putalpha(128)
blue

output output

ValueError: Could not save to PNG for display

The runtime is probably broken the runtime due to a library conflict during installation.由于安装过程中的库冲突,运行时可能会损坏运行时。 The same case occurred in cv2_imshow(), which was working well.同样的情况发生在 cv2_imshow() 中,它运行良好。
In my case, running [Restart runtime] cleared the bug.就我而言,运行 [Restart runtime] 清除了该错误。

  • menu / Runtime / [Restart runtime]菜单/运行时/[重新启动运行时]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM