You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I execute python all-in-one.py I get the following error message:
Traceback (most recent call last):
File "/home/andrecht/enviroplus-python/examples/all-in-one.py", line 20, in
from PIL import Image, ImageDraw, ImageFont
ModuleNotFoundError: No module named 'PIL'
pip install Pillow failed to build the wheel, giving the error:
"RequiredDependencyException:
The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source."
So following the link installed directly from apt:
sudo apt install python3-pil
I saw the same issue. The easiest way to fix it is to install both numpy and pillow system wide with apt. Then the required C libraries are included and the 2 python packages are also available in the virtual environment.
sudo apt install python3-numpy python3-pil
However, in my case, the display still stays blank, without returning an error. I'll make a new issue for that.
when I execute python all-in-one.py I get the following error message:
Traceback (most recent call last):
File "/home/andrecht/enviroplus-python/examples/all-in-one.py", line 20, in
from PIL import Image, ImageDraw, ImageFont
ModuleNotFoundError: No module named 'PIL'
Solution:
pip install Pillow
Source:
https://stackoverflow.com/questions/8863917/importerror-no-module-named-pil
The text was updated successfully, but these errors were encountered: