Skip to content

Raspbian install documentation #3671

@robodhhb

Description

@robodhhb

What did you do?

I want to import PIL modules with the following statement

#!/usr/bin/python3
import tkinter
from PIL import Image, ImageTk

But ImageTk was NOT imported. I got it by executing:
sudo aptitude install python3-pil.imagetk
This fact should be added to the documentation which would be of great help for beginners.
All modules which are not installed by default should have a hint that a user must install these modules!

What did you expect to happen?

The module Image and ImageTk shall be imported

What actually happened?

Only the module Image was imported

What are your OS, Python and Pillow versions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions