Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No module named 'Pillow'
#4
(May-10-2019, 01:27 PM)MrMajorThorburn Wrote: I have re-installed python and confirm I have a PYTHONPATH environment variable containing the paths to the installed python DLLs and Lib folders.
Look as this to make sure all is correct Python 3.6/3.7 and pip installation under Windows

A basic test of python and pip from command line.
C:\>python -V
Python 3.7.3

C:\>python -c "import sys; print(sys.executable)"
C:\python37\python.exe

# See that pip point to 3.7
C:\>pip -V
pip 19.1.1 from c:\python37\lib\site-packages\pip (python 3.7)
So now will pip install Pillow only install to Python 3.7.
A quick test i use virtual environment as a already have Pillow installed before.
# Install 
(key_env) E:\div_code\key_env
λ pip install Pillow
Collecting Pillow .....
Installing collected packages: Pillow
Successfully installed Pillow-6.0.0

# Test
(key_env) E:\div_code\key_env
λ python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
# The import is still PIL as mention before
>>> from PIL import Image
>>> Image.__version__
'6.0.0'

>>> im = Image.open("22.jpg")
>>> print(im.format, im.size, im.mode)
JPEG (930, 288) RGB
>>> exit()
Reply


Messages In This Thread
No module named 'Pillow' - by MrMajorThorburn - May-10-2019, 01:27 PM
RE: No module named 'Pillow' - by Yoriz - May-10-2019, 01:42 PM
RE: No module named 'Pillow' - by MrMajorThorburn - May-10-2019, 04:35 PM
RE: No module named 'Pillow' - by snippsat - May-10-2019, 06:02 PM
RE: No module named 'Pillow' - by MrMajorThorburn - May-11-2019, 07:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  no module named 'docx' when importing docx MaartenRo 1 997 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 24,124 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 2,778 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,532 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,622 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,406 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 1,078 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
  Help with pyinstaller "No module named" korenron 9 9,467 Jun-15-2023, 12:20 PM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 1,061 May-15-2023, 02:38 PM
Last Post: tonynapoli2309
  ModuleNotFoundError: No module named 'omsdk.sdkproto' donvito7 4 1,918 Oct-20-2022, 02:56 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020