66122/i-am-trying-to-install-pil-module-but-i-end-up-with-an-error
$ pip install PIL ERROR: Could not find a version that satisfies the requirement PIL (from versions: none) ERROR: No matching distribution found for PIL
Can Anyone suggest me any other way to install it.
Thanking You...!!!
Hey, @Nishant,
Try installing the package named Pillow, it's a PIL Fork. You can use it the same as the PIL package.
Hi Gitika,
I have already installed the pillow package, but my program is still showing me the error for PIL module.
I am trying to run a program which is using MyQR package and it is showing me the following error :
$ C:/Python/Python38/python.exe d:/MCA/MyProject/Project/generate.py Traceback (most recent call last): File "d:/MCA/MyProject/Project/generate.py", line 1, in <module> from MyQR import myqr File "C:\Python\Python38\lib\site-packages\MyQR\myqr.py", line 5, in <module> from MyQR.mylibs import theqrmodule File "C:\Python\Python38\lib\site-packages\MyQR\mylibs\theqrmodule.py", line 3, in <module> from MyQR.mylibs import data, ECC, structure, matrix, draw File "C:\Python\Python38\lib\site-packages\MyQR\mylibs\draw.py", line 3, in <module> from PIL import Image ModuleNotFoundError: No module named 'PIL'
Please help me in this
Hi, @Sush,
Could you please post the error statement you are facing?
Hi. @Shravani,
Are you facing a problem installing Pillow or the error which is given above? And what is the exact error you are getting? Please post your workaround.
Hi, @There,
On some installs of PIL, You must do
import Image
instead of import PIL (PIL is in fact not always imported this way). Since import Image works for you, this means that you have in fact installed PIL.
Hi@Nishant,
You can use PILLOW instead of PIL.
$ pip3 install PILLOW Collecting PILLOW Downloading https://files.pythonhosted.org/packages/ba/90/8a24e6220cfcf6a3a0162535d5b926e774117e384ff921908e07e4c92bda/Pillow-7.1.1-cp36-cp36m-manylinux1_x86_64.whl (2.1MB) 100% |████████████████████████████████| 2.1MB 281kB/s Installing collected packages: PILLOW Successfully installed PILLOW-7.1.1 [root@vm1 ~]# python3 Python 3.6.6 (default, Mar 29 2019, 00:03:27) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import PIL >>>
Now it works fine. Try this once.
$ pip install pybase ERROR: Could not find ...READ MORE
I have the same issue and is ...READ MORE
could not find a version that satisfies ...READ MORE
Hey @tekle, You cannot use a string in ...READ MORE
suppose you have a string with a ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
Hi@Avinash, I think the module name is visualization ...READ MORE
word cloud is not supported for python ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.