Skip to content
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

ModuleNotFoundError: No module named 'PIL' #50

Open
optimismus opened this issue Nov 30, 2019 · 2 comments
Open

ModuleNotFoundError: No module named 'PIL' #50

optimismus opened this issue Nov 30, 2019 · 2 comments

Comments

@optimismus
Copy link

optimismus commented Nov 30, 2019

This doesn't work:

pi@raspiB:~/BrachioGraph $ python3
Python 3.7.3 (default, Apr  3 2019, 05:39:12)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from linedraw import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/BrachioGraph/linedraw.py", line 10, in <module>
    from PIL import Image, ImageDraw, ImageOps
ModuleNotFoundError: No module named 'PIL'

source: https://brachiograph.readthedocs.io/en/latest/how-to/use-linedraw.html

As adviced I installed: pip3 install opencv-python-headless before.

But "PIL" = the libary pillow is missing, it has a lot of depencies you have to install before, that means, this has to be done additionally:

sudo apt-get install libjpeg-dev -y
sudo apt-get install zlib1g-dev -y
sudo apt-get install libfreetype6-dev -y
sudo apt-get install liblcms1-dev -y
sudo apt-get install libopenjp2-7 -y
sudo apt-get install libtiff5 -y
sudo pip3 install pillow

Regards
Axel

@alex8411
Copy link

alex8411 commented Oct 8, 2020

same issue when trying to run the Reachy Unity simulation + python webserver API, any solution ?

@LumaC0
Copy link

LumaC0 commented Mar 27, 2021

Support for PIL was discontinued in 2011. The project is now being maintained as Pillow.

pip install Pillow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants