from PIL import Image

12 views
Skip to first unread message

Christopher Dubea

unread,
Aug 30, 2025, 11:34:41 AMAug 30
to thonny
Greetings all,

Running Thonny v4.1.7 installed on a Windows 10 Pro machine.

Can anyone tell me why Thonny can't find PIL?

Here is Thonny next to a Command Prompt window:

Thonny.JPG

Thank you.

chris

Paul Naish

unread,
Aug 30, 2025, 2:15:35 PMAug 30
to thonny
How did you install PIL?

Are you running in a Virtual Environment?

Christopher Dubea

unread,
Aug 30, 2025, 3:22:18 PMAug 30
to thonny
Found the issue. Was running using the Thonny python versus running the locally installed version.

Changing the version solves the issue.

Paul Naish

unread,
Aug 30, 2025, 7:29:55 PMAug 30
to thonny
Just for clarification, it wasn't the version of Python that was the problem but the 'site-packages' that it was pointing to that prevented it from finding PIL.
Reply all
Reply to author
Forward
0 new messages