Python Forum
ImportError: No module named PIL
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ImportError: No module named PIL
#7
(Mar-02-2022, 07:10 PM)snippsat Wrote:
(Mar-02-2022, 03:18 PM)rudeoil18 Wrote: Also don't show up in your command line.
You most alias to both python and pip to the new version .
Look at this link .
So when you do pip --version or pip3 --version it most point to Python 3.10.2.
Then will pip3 install pillow install to Python 3.10.2 and when you choice Python 3.10.2 in PyCharm it will work.

Now it do pip3 install pillow it will install to Python 3.9.10,then if choice this version it PyCharm it will work.
But to use your new version need to look at alias or pyenv( that the first advice in link i posted)
My tutorial.

OK I think I understand the issue; Pillow is installed on Python 3.9.10 but I have 3.10.2 selected in PyCharm.

I tried to use your alias article to link to Python 3.10.2 but it doesn't work, when I type pip3 --version it is still linked to Python 3.9.10

How can I find the filepath for Python 3.9.10 so I can change to that interpreter in PyCharm?
Reply


Messages In This Thread
ImportError: No module named PIL - by rudeoil18 - Mar-02-2022, 02:02 PM
RE: ImportError: No module named PIL - by snippsat - Mar-02-2022, 02:28 PM
RE: ImportError: No module named PIL - by rudeoil18 - Mar-02-2022, 02:43 PM
RE: ImportError: No module named PIL - by snippsat - Mar-02-2022, 02:58 PM
RE: ImportError: No module named PIL - by rudeoil18 - Mar-02-2022, 03:18 PM
RE: ImportError: No module named PIL - by snippsat - Mar-02-2022, 07:10 PM
RE: ImportError: No module named PIL - by rudeoil18 - Mar-02-2022, 08:01 PM
RE: ImportError: No module named PIL - by snippsat - Mar-02-2022, 11:03 PM
RE: ImportError: No module named PIL - by rudeoil18 - Mar-03-2022, 12:34 PM
RE: ImportError: No module named PIL - by snippsat - Mar-03-2022, 01:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 3 3,655 May-10-2025, 05:56 PM
Last Post: Wimpy_Wellington
  ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10 Edward_ 4 1,223 Apr-06-2025, 07:56 PM
Last Post: Edward_
  No module named 'importlib.metadata' EdVS 3 1,269 Jan-30-2025, 09:55 AM
Last Post: Larz60+
  ModuleNotFoundError: No module named 'athena_read' raman 2 1,429 Jul-01-2024, 07:52 AM
Last Post: Gribouillis
  no module named 'docx' when importing docx MaartenRo 1 6,178 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 31,756 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 11,015 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 4,817 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 4,119 Aug-07-2023, 05:32 AM
Last Post: DPaul
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 2,608 Jul-09-2023, 11:24 AM
Last Post: yaoyao22

Forum Jump:

User Panel Messages

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