Porting to Pillow as recommended does not work for me #7757
Replies: 11 comments 11 replies
-
How did you install Pillow? |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the quick response. I am using pycharm, I installed several times both using the pip install command and also via Pycharm package manager.
*Kind Regards,*
*Dr. Ferda Özdemir Sönmez*
|
Beta Was this translation helpful? Give feedback.
-
I used pip install pillow I guess, later I tried to select specific versions. Currently, I switched back to python 2.7 for this specific project only to make it work. Still, not successful. This is what I can not try it again. What should I do?
*Kind Regards,*
*Dr. Ferda Özdemir Sönmez*
…On Sun, Jan 28, 2024 at 9:22 PM Andrew Murray ***@***.***> wrote:
using the pip install
What is the exact command you used?
—
Reply to this email directly, view it on GitHub
<#7757 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6QWFFRUG62OI2F3C4XFTLYQ26Q7AVCNFSM6AAAAABCOHABGGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DENZUGY4TM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Looking at what has helped other people install Pillow in PyCharm
|
Beta Was this translation helpful? Give feedback.
-
Hello Andrew,
Of course, I am using the project interpreter and my pip is already up to
date. I think the problem is more complex than this.
*Kind Regards,*
*Dr. Ferda Özdemir Sönmez*
…On Mon, Jan 29, 2024 at 12:30 PM Andrew Murray ***@***.***> wrote:
Looking at what has helped other people install Pillow in PyCharm
- "I had to go to the Project Interpreter and install there the Pillow
package" - #4319 (comment)
<#4319 (comment)>,
and also #3117 (comment)
<#3117 (comment)>
- Upgrading pip - #4530 (comment)
<#4530 (comment)>
—
Reply to this email directly, view it on GitHub
<#7757 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6QWFAQW7CCI43BFKP5OD3YQ6I75AVCNFSM6AAAAABCOHABGGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DEOBRHAYTE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Here is my screenshot. This shows all the details. The code is imported as
below ( I also tried other versions but none of them worked).
from PIL import Image, ImageDraw, ImageFont
from PIL.PngImagePlugin import PngImageFile, PngInfo
I am getting the error,
from PIL import Image, ImageDraw, ImageFont
ModuleNotFoundError: No module named 'PIL'
I hope you can solve the problem because this took lots of time already
with no success :(
[image: image.png]
[image: image.png]
*Kind Regards,*
*Dr. Ferda Özdemir Sönmez*
…On Mon, Jan 29, 2024 at 12:45 PM Jeffrey A. Clark (Alex) < ***@***.***> wrote:
Hi Ferda!
Yeah, I think we'll need to see a screenshot or paste of your Pillow
installation in order to provide any additional meaningful help.
Pillow installation is complex, up to a point, after which the complexity
lies in understanding the environment in which you are installing it. 🤔
—
Reply to this email directly, view it on GitHub
<#7757 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6QWFEMPIJQVFX2BJXIGBDYQ6KXJAVCNFSM6AAAAABCOHABGGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DEOBSGEZTI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
What do you mean?
*Kind Regards,*
*Dr. Ferda Özdemir Sönmez*
…On Mon, Jan 29, 2024 at 1:04 PM Andrew Murray ***@***.***> wrote:
Unfortunately, your screenshots did not appear correctly.
—
Reply to this email directly, view it on GitHub
<#7757 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6QWFCJ4X7DWFUOB4EMSJDYQ6M5PAVCNFSM6AAAAABCOHABGGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DEOBSGM3DE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Interestingly, yes.
*Kind Regards,*
*Dr. Ferda Özdemir Sönmez*
…On Mon, Jan 29, 2024 at 2:41 PM Hugo van Kemenade ***@***.***> wrote:
Does from PIL import Image, ImageDraw, ImageFont work in this new file?
Even if the old file causes a error, it would still be interesting to see
what it prints out before the error.
—
Reply to this email directly, view it on GitHub
<#7757 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6QWFGG5VFR5S262SQBD4DYQ6YKHAVCNFSM6AAAAABCOHABGGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DEOBUGA3TM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
This is the same project, and same folder but I am getting a different result. 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] |
Beta Was this translation helpful? Give feedback.
-
If you'd like a PyCharm solution not involving the terminal, I imagine you have a different interpreter selected in your run configuration. See https://www.jetbrains.com/help/pycharm/run-debug-configuration.html#da5a5665 for editing run configurations - this is probably set to something other than "Project Default (...)". If instead you want to use that interpreter for that configuration and just need to install Pillow in it, you can change the selected interpreter in the project settings, install Pillow using the PyCharm interface, then switch the interpreter back. See also https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#modify_interpreter |
Beta Was this translation helpful? Give feedback.
-
Him, When I realized that one file running another python version, I
recreated it and now it is ok,. Thank you..
*Kind Regards,*
*Dr. Ferda Özdemir Sönmez*
…On Fri, Feb 2, 2024 at 7:39 AM Andrew Murray ***@***.***> wrote:
@ferdasonmez <https://github.com/ferdasonmez> did either this or my
suggestion
<#7757 (reply in thread)>
work?
—
Reply to this email directly, view it on GitHub
<#7757 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6QWFAXBDZH7SY55TLYILDYRSJ4ZAVCNFSM6AAAAABCOHABGGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGNBTGIYDC>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am using Python 3.11. I installed pillow 10.2.0. I am getting error for this (and similar lines)
from PIL import Image
. The error is ModuleNotFoundError: No module named 'PIL'.I am trying to use a software which I was able to use before. Please help.
Regards,
Ferda
Beta Was this translation helpful? Give feedback.
All reactions