From pil import image pip install ubuntu jpg') # Display the image (this will use the default image viewer on your system) image. This will open up the python3 interactive console now type the following command to check the current version of the PIL. To avoid errors, we need to upgrade the pip using the upgrade command before installing the Pillow module. Sep 30, 2021 · pip install pillow. Apr 19, 2014 · Actually, people use Pillow now, which is a modern repackaged version of PIL. __version__ See full list on pypi. This post presented an in-depth guide on installing PIL/Pillow Module in windows, Linux, and macOS. py", line 2, in <module> from PIL import ImageTk, Image ImportError: No module named PIL but I already install Pillow and everything is fine. Jul 19, 2021 · from tkinter import * from PIL import ImageTk, Image root. Step 2: To check if PIL is successfully installed, open up the python terminal by typing python3 in the terminal. org Feb 21, 2025 · sudo apt install python3 - pip Install PIL: Run the following command in the terminal: pip3 install Pillow Usage Methods Opening and Displaying Images from PIL import Image # Open an image image = Image. mainloop() I got. With pip installed, install the required development packages:. show() Image Manipulation Basics The “apt” package manager command is used in Linux to install the pillow package in Python. If you don’t have pip, install it using: $ sudo apt-get install python-pip. It has a lot of nice functionalities and it works well. import PIL PIL. Traceback (most recent call last): File "image_viewer. Output: installing PIL. 04. open('example. Let’s see how you can install PIL on 64-bit Ubuntu 12. vku msiiy ygthayh lrrlj ngowvpf gkjrd mty hnxt kyzwo ven