Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get error when try to install PIL [duplicate]

I try to install PIL but get errors, what should I do?

$ Command
Result
------------
$ pip install PIL

Collecting PIL
  Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
--------------------------------------------------------------------
$ pip install PIL  --allow-unverified PIL --allow-all-external

DEPRECATION: --allow-all-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
Collecting PIL
  Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
like image 796
Shira Avatar asked Dec 26 '16 04:12

Shira


People also ask

How do you solve error could not find a version that satisfies the requirement PIL from versions none?

The error "Could not find a version that satisfies the requirement PIL" occurs when we try to pip install the PIL package. To solve the error, install Pillow which is a maintained fork of PIL and can be used as a drop-in replacement.

Is PIL a package in Python?

Python Imaging Library (expansion of PIL) is the de facto image processing package for Python language. It incorporates lightweight image processing tools that aids in editing, creating and saving images.

How do I know if PIL is installed?

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. This will output the currently installed version of the PIL.


2 Answers

You could try using Pillow instead, which is a PIL fork:

pip install Pillow

To import use:

from PIL import Image
like image 171
maviz Avatar answered Oct 21 '22 15:10

maviz


The library PIL is in Pillow. Try this:

$ pip install Pillow
like image 21
Fomalhaut Avatar answered Oct 21 '22 16:10

Fomalhaut