Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 为什么是PIL';s image.show()不适用于google collab笔记本_Python_Image_Python Imaging Library_Jupyter_Show - Fatal编程技术网

Python 为什么是PIL';s image.show()不适用于google collab笔记本

Python 为什么是PIL';s image.show()不适用于google collab笔记本,python,image,python-imaging-library,jupyter,show,Python,Image,Python Imaging Library,Jupyter,Show,我正在使用PIL库在google collab笔记本中显示图像。但它不起作用。有人能告诉我显示图像的原因和方法吗。我把我的代码放在下面 from PIL import Image Im=Image.open('image_name.png') Im.show() 这个问题出现在Jupyter笔记本电脑的案例中。使用show()不会显示图像。因此,放弃调用show(),如下面的代码所示。这将在单元格的输出中显示图像 from PIL import Image im = Image.open("l

我正在使用PIL库在google collab笔记本中显示图像。但它不起作用。有人能告诉我显示图像的原因和方法吗。我把我的代码放在下面

from PIL import Image
Im=Image.open('image_name.png')
Im.show()

这个问题出现在Jupyter笔记本电脑的案例中。使用show()不会显示图像。因此,放弃调用show(),如下面的代码所示。这将在单元格的输出中显示图像

from PIL import Image
im = Image.open("lists.jpg")
im

这个问题出现在Jupyter笔记本电脑的案例中。使用show()不会显示图像。因此,放弃调用show(),如下面的代码所示。这将在单元格的输出中显示图像

from PIL import Image
im = Image.open("lists.jpg")
im