How to Install PIL on Linux? - GeeksforGeeks (2024)

Skip to content

  • Courses
    • Newly Launched!
    • For Working Professionals
    • For Students
    • GATE Exam Courses
  • Tutorials
    • Data Structures & Algorithms
      • Data Structures
        • Tree
  • Trending Now
  • DSA
  • Web Tech
  • Foundational Courses
  • Data Science
  • Practice Problem
  • Python
  • Machine Learning
  • JavaScript
  • System Design
  • Django
  • DevOps Tutorial
  • Java
  • C
  • C++
  • ReactJS
  • NodeJS
  • CP Live
  • Aptitude
  • Puzzles
  • Projects

Open In App

Suggest changes

Like Article

Like

Save

Report

PIL is an acronym for Python Image Library. It is also called Pillow. It is one of the most famous libraries for manipulating images using the python programming language. It is a free and open-source Python library.

Installing PIL on Linux:

Method 1: Using PIP command:

Step 1: Open up the Linux terminal and type the following command and hit enter.

pip install pillow

Output:

How to Install PIL on Linux? - GeeksforGeeks (3)

installing PIL

Step 2: To check if PIL is successfully installed, open up the python terminal by typing python3 in the terminal. This will open up the python3 interactive console now type the following command to check the current version of the PIL.

import PILPIL.__version__

This will output the currently installed version of the PIL.

Output:

How to Install PIL on Linux? - GeeksforGeeks (4)

PIL version

Method 2: Using aptitude package manager

Aptitude is just a frontend version of the apt command that we used to install packages. Aptitude is an interactive package manager, it provides a list of all the matching packages that we want to install. It also finds and installs all the required dependencies for the package.

Step 1: Run the following command to install the PIL using Aptitude.

sudo aptitude install python3-pil

Output:

How to Install PIL on Linux? - GeeksforGeeks (5)

installing pil using aptitude


R

richasalan57

How to Install PIL on Linux? - GeeksforGeeks (6)

Improve

Previous Article

How to Install PIL on Windows?

Next Article

Python PIL | Image.save() method

Please Login to comment...

Similar Reads

How to Install PIL on Windows? In this article, we will look into the various methods of installing the PIL package on a Windows machine. Prerequisite:Python PIP or Ananconda (Depending upon your preference)For PIP Users: Open up the command prompt and use the below command to install the PIL package: pip install Pillow The following message will be displayed once the installati 1 min read How to Install PIL on MacOS? PIL is an acronym for the python image library. It is a library that is used to manipulate images, using PIL library with python we can perform various operations on images. In this article, we are going to learn how we can install PIL on MacOS. Method 1: Using PIP to install PIL (Pillow). Python comes preinstalled in MacOs, and if you have not ins 1 min read How to Install GD module on Linux? GD is a python library. It provides various features and an async-ready API wrapper for the geometry dash. It is easy to use. It is used to implement the geometry dash API and is also very handy to work with object-oriented design. Installing GD module on Linux Method 1: Using pip to install GD Package Follow the below steps to install the GD packa 2 min read How to Install Kali Linux on Windows? Kali Linux is an open-source Linux distribution based on Debian, designed for sophisticated penetration testing and security auditing. Kali Linux includes hundreds of tools for diverse information security activities such as penetration testing, security research, computer forensics, and reverse engineering. This multi-platform solution is accessib 2 min read How to install and configure Docker on Arch-based Linux Distributions(Manjaro) ? In this article, we are going to see how to install and configure Docker on Arch-based Linux Distributions. Docker is an open-source containerization platform used for building, running, and managing applications in an isolated environment. A container is isolated from another and bundles its software, libraries, and configuration files. Containers 2 min read Install Pytorch on Linux In this article, we are going to see how you can install PyTorch in the Linux system. We are using Ubuntu 20 LTS you can use any other one. To successfully install PyTorch in your Linux system, follow the below procedure: First, check if you are using python’s latest version or not. Because PyGame requires python 3.7 or a higher version, make sure 2 min read How to Install Deepin on Linux? Deepin is the top Linux distribution from China, it provides a beautiful, easy-to-use, safe, and reliable operating system for global users. Deepin is based on Debian's stable branch. The feature that sets Deepin aside from the rest of Linux distributions is its desktop environment known as DDE Deepin Desktop Environment, which was described as "th 3 min read How to Install NuGet from Command Line on Linux? NuGet is the package manager for the .NET framework. It's very much useful for developers as developers can create, publish and consume packages. The package format of NuGet consists of a single ZIP file with the extension of .nupkg and which is the DLL compiled code like the package’s version number. A NuGet package manager is a cross-platformed m 2 min read How to Install Git on Windows Subsystem for Linux? Git is an open-source distributed version control system developed to handle everything from simple to complex projects with performance and speed. Git software allows a team or group of developers to work together, with all using the same files and folders. It gradually reduces the confusion that tends to happen when multiple people are editing th 2 min read How to Install Linux on Windows PowerShell Subsystem? There are several ways to Install a Linux subsystem on your Windows PC Powershell Environment. It is good for learners, but it is recommended using original Linux OS if you are a developer as the Subsystem lacks the pre-installed Linux tools. Before we begin installing a Linux subsystem, we need to first enable a Windows feature for Subsystems. Ena 2 min read How to Install Lazy Script in Kali Linux? Kali Linux is one of the most advanced hacking OS systems from Linux family. Kali Linux is filled with many hacking tools and supporting learners and hackers worldwide. There are many versions of Kali Linux which provides a good user interface and desired environment. The Lazy Script is designed to help many users to save time and work. The script 2 min read How to Download and Install Python Latest Version on Linux? Python is a widely-used general-purpose, high-level programming language. This article will serve as a complete tutorial on How to download and install Python latest version on Linux Operating Systems. On every Linux system including following OS, Ubuntu Linux Mint Debian openSUSE CentOS Fedora and my favourite one, Arch Linux. You will find Python 3 min read How to Install Z Shell(zsh) on Linux? The ZSH or Z Shell is a Unix based shell or can be called as a command-line interpreter. It is an extended version of the good old Bourne shell (sh). It does have some features form Bash with lots of added features like automatic cd (Change Directory), spell check, path expansion, and many more. It also supports plugins and themes. Installing ZSH o 2 min read How to Install Perl on Linux? Prerequisite: Introduction to Perl Before, we start with the process of Installing Perl on our System. We must have first-hand knowledge of What the Perl Language is and what it actually does?. Perl is a general-purpose, high level interpreted and dynamic programming language. Perl was originally developed for text processing like extracting the re 3 min read How to Install Code Blocks for C++ on Linux? Code::Blocks is a free IDE( an integrated development environment), for C/C++ and FORTRAN languages. It is a cross-platform IDE and available for Windows, Mac, and Linux, In this article, we are going to discuss various methods using which we can install Code Blocks on Linux.: Installation Code Blocks for C++ on Linux:Method 1: Using apt install co 2 min read How to install Jupyter Notebook in Linux? Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. Uses include data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more. Jupyter has support for over 40 differ 2 min read How to Install Python Pycharm on Linux? Prerequisite: Python Language Introduction Python is a widely-used general-purpose, high-level programming language. It was initially designed by Guido van Rossum in 1991 and developed by Python Software Foundation. It was mainly developed for emphasis on code readability, and its syntax allows programmers to express concepts in fewer lines of code 2 min read How to Install OpenCV for Python in Linux? Prerequisite: Python Language Introduction OpenCV is the huge open-source library for computer vision, machine learning, and image processing and now it plays a major role in real-time operation which is very important in today’s systems. By using it, one can process images and videos to identify objects, faces, or even the handwriting of a human. 2 min read How to Install Python-USPP on Linux? Python-USPP is a multi-platform Python library that allows communication between Python programs and USPP devices. This library is written in Python itself. It supports Windows, Linux, and MacOS. In this article, we will learn how to install this library in the Linux operating system. Python USPP installation on Linux The python uspp has been devel 3 min read How to Install and Configure Apache Subversion(SVN) In Linux? Apache Subversion (SVN), is a version control system like Git. it is distributed under an open-source license. SVN was created by CollabNet Inc. but now it is developed as a project of the Apache Software Foundation. Downloading and Installing Apache SVN Apache Subversion(SVN) can be easily downloaded and installed with the use of the command-line. 2 min read How to Install Jmespath in Python in Linux? Jmespath is known as the JSON query language for Python. It is used to find or extract the needed data from the JSON document or dictionary very quickly. It is also available in other languages also. In this article, we will be looking at the stepwise procedure to install the Jmespath for Python in Linux Operating System. Requirements: Python3Pytho 2 min read How to Install Numdifftools in Python on Linux? Numdifftools is a Python-based toolkit that solves numerical differentiation issues in one or more variables automatically. To produce the most accurate outcome, finite differences are exploited adaptively in conjunction with a Richardson extrapolation mechanism. This library is cross-platformed, so it can work with Windows, Linux, and even with ma 2 min read How to Install Apache Pig in Linux? Pig is a high-level platform or tool which is used to process large datasets. It provides a high-level of abstraction for processing over the MapReduce. It provides a high-level scripting language, known as Pig Latin which is used to develop the data analysis codes. In order to install Apache Pig, you must have Hadoop and Java installed on your sys 2 min read How to Install GNU Octave in Linux? Octave is open-source, free available for many of the platforms. It is actually a High-level Language. It comes up with a text interface along with an experimental graphical interface. It is also used for various Machine Learning algorithms for solving various numeric problems. You can say that it is similar to MATLAB but slower than MATLAB. We can 2 min read How to Install and Use Hydra in Linux? Weak passwords are still a big problem in security, nowadays guessing passwords and cracking algorithms is becoming easy and brute-forcing is a major kind of attack in the boom. A general rule for making a strong password is using a combination that is long(more than 8 letters) with capitals, symbols, and numeric's. To crack passwords a great tool 3 min read How to Install TeamViewer on Linux/Ubuntu? TeamViewer is one of the best cross-platform remote support application. Its available for Windows, Mac, Chrome OS, Raspberry Pi, iOS, Android, and Linux Operating Systems. TeamViewer is used for: Controlling Remote Computer via GUI (Graphical User Interface).File Transfer. If your mode of usage is for personal and non-commercial its completely fre 2 min read Install Pygame in Linux In this article, we will discuss how to install PyGame in the Linux system. We are using Ubuntu 20 LTS you can use any other one. To successfully install PyGame in your Linux system, follow the below procedure: First Check you are using python's latest version or not. Because the PyGame is only supported python 3.7.7 or higher version so make sure 2 min read How to Install Kali Linux VirtualBox Image? Kali Linux is considered as the best perpetration testing Linux distribution as it comes with every important tool pre-installed in it. If you have a spare system you can directly install Kali into it, but if you plan to use it in a virtual environment then the best and safest method would be to use VirtualBox in your system. You can download Virtu 2 min read How to Install Linux Packages Inside a Docker Container? Once you understand how to pull base Docker Images from the Docker registry, you can now simply pull OS distributions such as Ubuntu, CentOS, etc directly from the Docker hub. However, the OS Image that you have pulled simply contains a raw file system without any packages installed inside it. When you work on projects inside Docker Containers, you 2 min read Python - Install Paramiko on Windows and Linux The high-level python API starts with the creation of a secure connection object. To have more direct control and pass a socket to transport to start remote access. As a client, it's authenticating using a user credential or private key, and checking the server’s host key. Paramiko is a Python library that makes a connection with a remote device th 1 min read

Article Tags :

  • How To
  • Installation Guide
  • how-to-install

Trending in News

View More
  • How to Merge Cells in Google Sheets: Step by Step Guide
  • How to Lock Cells in Google Sheets : Step by Step Guide
  • #geekstreak2024 – 21 Days POTD Challenge Powered By Deutsche Bank

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy

How to Install PIL on Linux? - GeeksforGeeks (7)

'); $('.spinner-loading-overlay').show(); jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id, check: true }), success:function(result) { jQuery.ajax({ url: writeApiUrl + 'suggestions/auth/' + `${post_id}/`, type: "GET", dataType: 'json', xhrFields: { withCredentials: true }, success: function (result) { $('.spinner-loading-overlay:eq(0)').remove(); var commentArray = result; if(commentArray === null || commentArray.length === 0) { // when no reason is availaible then user will redirected directly make the improvment. // call to api create-improvement-post $('body').append('

'); $('.spinner-loading-overlay').show(); jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id, }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.unlocked-status--improve-modal-content').css("display","none"); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { $('.spinner-loading-overlay:eq(0)').remove(); var result = e.responseJSON; if(result.detail.non_field_errors.length){ $('.improve-modal--improve-content .improve-modal--improve-content-modified').text(`${result.detail.non_field_errors}.`); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); $('.improvement-reason-modal').hide(); } }, }); return; } var improvement_reason_html = ""; for(var comment of commentArray) { // loop creating improvement reason list markup var comment_id = comment['id']; var comment_text = comment['suggestion']; improvement_reason_html += `

${comment_text}

`; } $('.improvement-reasons_wrapper').html(improvement_reason_html); $('.improvement-bottom-btn').html("Create Improvement"); $('.improve-modal--improvement').hide(); $('.improvement-reason-modal').show(); }, error: function(e){ $('.spinner-loading-overlay:eq(0)').remove(); // stop loader when ajax failed; }, }); }, error:function(e) { $('.spinner-loading-overlay:eq(0)').remove(); var result = e.responseJSON; if(result.detail.non_field_errors.length){ $('.improve-modal--improve-content .improve-modal--improve-content-modified').text(`${result.detail.non_field_errors}.`); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); $('.improvement-reason-modal').hide(); } }, }); } else { if(loginData && !loginData.isLoggedIn) { $('.improve-modal--overlay').hide(); if ($('.header-main__wrapper').find('.header-main__signup.login-modal-btn').length) { $('.header-main__wrapper').find('.header-main__signup.login-modal-btn').click(); } return; } } }); $('.left-arrow-icon_wrapper').on('click',function(){ if($('.improve-modal--suggestion').is(":visible")) $('.improve-modal--suggestion').hide(); else{ $('.improvement-reason-modal').hide(); } $('.improve-modal--improvement').show(); }); function loadScript(src, callback) { var script = document.createElement('script'); script.src = src; script.onload = callback; document.head.appendChild(script); } function suggestionCall() { var suggest_val = $.trim($("#suggestion-section-textarea").val()); var array_String= suggest_val.split(" ") var gCaptchaToken = $("#g-recaptcha-response-suggestion-form").val(); var error_msg = false; if(suggest_val != "" && array_String.length >=4){ if(suggest_val.length <= 2000){ var payload = { "gfg_post_id" : `${post_id}`, "suggestion" : `

${suggest_val}

`, } if(!loginData || !loginData.isLoggedIn) // User is not logged in payload["g-recaptcha-token"] = gCaptchaToken jQuery.ajax({ type:'post', url: "https://apiwrite.geeksforgeeks.org/suggestions/auth/create/", xhrFields: { withCredentials: true }, crossDomain: true, contentType:'application/json', data: JSON.stringify(payload), success:function(data) { jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-section-textarea').val(""); jQuery('.suggest-bottom-btn').css("display","none"); // Update the modal content const modalSection = document.querySelector('.suggestion-modal-section'); modalSection.innerHTML = `

Thank You!

Your suggestions are valuable to us.

You can now also contribute to the GeeksforGeeks community by creating improvement and help your fellow geeks.

`; }, error:function(data) { jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Something went wrong."); jQuery('#suggestion-modal-alert').show(); error_msg = true; } }); } else{ jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Minimum 5 Words and Maximum Character limit is 2000."); jQuery('#suggestion-modal-alert').show(); jQuery('#suggestion-section-textarea').focus(); error_msg = true; } } else{ jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Enter atleast four words !"); jQuery('#suggestion-modal-alert').show(); jQuery('#suggestion-section-textarea').focus(); error_msg = true; } if(error_msg){ setTimeout(() => { jQuery('#suggestion-section-textarea').focus(); jQuery('#suggestion-modal-alert').hide(); }, 3000); } } document.querySelector('.suggest-bottom-btn').addEventListener('click', function(){ jQuery('body').append('

'); jQuery('.spinner-loading-overlay').show(); if(loginData && loginData.isLoggedIn) { suggestionCall(); return; } // load the captcha script and set the token loadScript('https://www.google.com/recaptcha/api.js?render=6LdMFNUZAAAAAIuRtzg0piOT-qXCbDF-iQiUi9KY',[], function() { setGoogleRecaptcha(); }); }); $('.improvement-bottom-btn.create-improvement-btn').click(function() { //create improvement button is clicked $('body').append('

'); $('.spinner-loading-overlay').show(); // send this option via create-improvement-post api jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.improvement-reason-modal').hide(); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { $('.spinner-loading-overlay:eq(0)').remove(); var result = e.responseJSON; if(result.detail.non_field_errors.length){ $('.improve-modal--improve-content .improve-modal--improve-content-modified').text(`${result.detail.non_field_errors}.`); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); $('.improvement-reason-modal').hide(); } }, }); });

How to Install PIL on Linux? - GeeksforGeeks (2024)
Top Articles
Should You Keep Your Money in the Bank or Invest In Real Estate?
Cosa ci aspettiamo per il bitcoin nel 2024
Login Page
Plaza Nails Clifton
Midflorida Overnight Payoff Address
Soap2Day Autoplay
Wannaseemypixels
Google Jobs Denver
Top 10: Die besten italienischen Restaurants in Wien - Falstaff
T&G Pallet Liquidation
Oscar Nominated Brings Winning Profile to the Kentucky Turf Cup
Caresha Please Discount Code
Truck Toppers For Sale Craigslist
Industry Talk: Im Gespräch mit den Machern von Magicseaweed
Ts Lillydoll
Nj State Police Private Detective Unit
Craigslist Farm And Garden Tallahassee Florida
065106619
National Weather Service Denver Co Forecast
Scenes from Paradise: Where to Visit Filming Locations Around the World - Paradise
Sam's Club La Habra Gas Prices
Saatva Memory Foam Hybrid mattress review 2024
Vrachtwagens in Nederland kopen - gebruikt en nieuw - TrucksNL
라이키 유출
Johnnie Walker Double Black Costco
3 2Nd Ave
How to Make Ghee - How We Flourish
6 Most Trusted Pheromone perfumes of 2024 for Winning Over Women
Trivago Myrtle Beach Hotels
Albert Einstein Sdn 2023
Mikayla Campinos: Unveiling The Truth Behind The Leaked Content
John Philip Sousa Foundation
What Is Xfinity and How Is It Different from Comcast?
Navigating change - the workplace of tomorrow - key takeaways
Prima Healthcare Columbiana Ohio
Cruise Ships Archives
Despacito Justin Bieber Lyrics
Nacho Libre Baptized Gif
Polk County Released Inmates
Pillowtalk Podcast Interview Turns Into 3Some
Retire Early Wsbtv.com Free Book
159R Bus Schedule Pdf
Nid Lcms
Three V Plymouth
Energy Management and Control System Expert (f/m/d) for Battery Storage Systems | StudySmarter - Talents
Kenner And Stevens Funeral Home
Avatar: The Way Of Water Showtimes Near Jasper 8 Theatres
Greatpeople.me Login Schedule
6463896344
Barber Gym Quantico Hours
Wera13X
Craigslist Cars And Trucks For Sale By Owner Indianapolis
Latest Posts
Article information

Author: Sen. Emmett Berge

Last Updated:

Views: 5679

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Sen. Emmett Berge

Birthday: 1993-06-17

Address: 787 Elvis Divide, Port Brice, OH 24507-6802

Phone: +9779049645255

Job: Senior Healthcare Specialist

Hobby: Cycling, Model building, Kitesurfing, Origami, Lapidary, Dance, Basketball

Introduction: My name is Sen. Emmett Berge, I am a funny, vast, charming, courageous, enthusiastic, jolly, famous person who loves writing and wants to share my knowledge and understanding with you.