cannot import name 'ImageTK' - python 3.5

前端 未结 7 1669
忘掉有多难
忘掉有多难 2020-12-17 16:02

I am trying to load in an image from the same folder as the one my python script is in.

# create a class called Person
# create init method
# 2 attributes (         


        
7条回答
  •  一生所求
    2020-12-17 16:24

    I tried this to install Pillow itself and it works well, i didn't use sudo.

    $ pip install Pillow --user
    

    Source for the main installation guide: here

    Feel free to edit my answer/correct me.

提交回复
热议问题