$ 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.
Try installing the package named Pillow, it's a PIL Fork. You can use it the same as the PIL package.
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
You can use PILLOW instead of PIL.
$ pip3 install 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
ERROR: Command errored out with exit status ...READ MORE
could not find a version that satisfies ...READ MORE
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
colors = ['red', 'green', ...READ MORE
can you give an example using a ...READ MORE
I think the module name is visualization ...READ MORE
First check your pip and python version ...READ MORE
Already have an account? Sign in.