Home > database >  Python isn't recognizing installed modules on Raspberry Pi
Python isn't recognizing installed modules on Raspberry Pi

Time:09-18

I've installed Pillow using the Pip command, and it says it's installed in the system. When I run my Python3 program that imports Pillow, it returns a module not found error. Here is the error:

sudo pip3 install Pillow

This returns:

Requirement already satisfied: Pillow in /usr/lib/python3/dist-packages (8.1.2)

Then after I run my Python program which uses Pillow, I get this:

ModuleNotFoundError: No module named 'pillow'

Thanks!

CodePudding user response:

Maybe you are using another version of python when you run your script..

Try to run your script from the terminal and write before it (python3)

CodePudding user response:

You are probably trying to run it with a different python version or in a virtual environment, you can provide controls by going into the settings of your code editor.

  • Related