-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pillow installed but still say "No module named 'Pillow'" #3117
Comments
You need to do: from PIL import ImageTk, Image See https://pillow.readthedocs.io/en/5.1.x/handbook/tutorial.html for examples. Edit: fix typo. |
@hugovk Thank you but it work with |
i have installed the latest pillow and i still get this error |
@1997showroom if you are receiving the error "No module named 'Pillow'", that's because you should not be importing 'Pillow' - you should be importing 'PIL'. |
So I have PIL and I am using python 3.7 I see a PIL folder in my 2.7 directory but not in 3.7 |
Is pycharm just not finding Pillow, this is what I get from my terminal when I try to install pillow |
I would guess that it's not finding it, yes. pip is telling that Pillow is already installed. If you would like to talk more about this, please create a new issue. Alternatively, since your situation doesn't indicate any fault in Pillow itself, you could ask on StackOverflow. |
Yes I got it to work by going to preferences and adding it in the
interpreter, thank you !!
I actually didn't realize stack was for that , im still figuring out this
stuff having so much fun though
https://www.instagram.com/little___river/
…On Sat, Jul 20, 2019 at 2:51 AM Andrew Murray ***@***.***> wrote:
I would guess that it's not finding it, yes. pip is telling that Pillow is
already installed. If you would like to talk more about this, please create
a new issue. Alternatively, since your situation doesn't indicate any fault
in Pillow itself, you could ask on StackOverflow.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3117?email_source=notifications&email_token=AMMPNMEX5WXB63DZUPSKY6DQAK7ZZA5CNFSM4E5PGW5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2NJDEA#issuecomment-513446288>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMMPNMHRNJ7IOK7JC72ELNLQAK7ZZANCNFSM4E5PGW5A>
.
|
Hey, i am kinda new to all this, i have installed pillow and it's saying "ModuleNotFoundError: No module named 'PIL'", also, what im doing is: "from PIL import Image" <- maybe that is wrong? im not sure, anyway, thanks in advance! |
Hi @rxvan. If it's conceivable that you have more than one version of Python installed, then it is possible that pip and your Pillow import are running on different copies of Python. If, for example, you are running
then
This suggestion can also be seen at https://pillow.readthedocs.io/en/stable/installation.html#windows-installation |
from how they introduced Pillow in their docs, i thought it was an intendent library and depended on PIL. Thanks you guys for clarifying |
Actually i installed Pillow-5.1.0
so, when i import the module it should work
it gives me "No module named 'Pillow'"
Pillow-5.1.0 and Python 3.5
from tkinter import *
import tkinter as tk
import time
from Pillow import ImageTk, Image
root = tk.Tk()
The text was updated successfully, but these errors were encountered: