Using Databases With TKinter - Python Tkinter GUI Tutorial #19

Поделиться
HTML-код
  • Опубликовано: 20 июл 2024
  • How to Use Use Databases With TKinter. In this video I'll start to show you how to use the SQLite3 database with Tkinter. Sqlite is a cool free database that comes with Python and is pretty easy to use!
    In this series I'll show you how to create graphical user interfaces for Python with Tkinter.
    ✅ Watch The Other Videos In This Python Playlist:
    bit.ly/2UFLKgj
    ▶️ See More At:
    Codemy.com
    ✅ Join My Facebook Group:
    bit.ly/2GFmOBz
    ✅ Subscribe To My RUclips Channel:
    bit.ly/2IGzvOR
    ▶️ Learn to Code at Codemy.com
    Take $22 off with coupon code: youtube

Комментарии • 180

  • @Codemycom
    @Codemycom  4 года назад +2

    ▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My RUclips Channel:
    bit.ly/2UFLKgj bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
    Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN

  • @dragans5624
    @dragans5624 5 лет назад +51

    I hope u get rich with doing things like sharing this knowledge :). Thanks for sharing

    • @Codemycom
      @Codemycom  4 года назад +10

      That'd be great :-p

  • @ninjatribble7961
    @ninjatribble7961 4 года назад +28

    Wooo, database stuff! This is what I've been looking forward to. Makes me feel like I'm starting to build something bordering on useful.

  • @softinfo2541
    @softinfo2541 4 года назад +6

    I have been going through many videos on youtube and came across many youtubers but my search stopped because I found simply the best!!! I really appreciate and your way to teach is simply WOW. for sure I will subscribe. which is INSANELY CHEAP :)

    • @Codemycom
      @Codemycom  4 года назад +1

      Thanks so much! I really appreciate your words!

  • @christophechouinard7619
    @christophechouinard7619 2 года назад +3

    4:45 this man just made me understand something so simple, but that nobody explains it this simple. Thanks man !

  • @abhishekrathore5611
    @abhishekrathore5611 3 года назад +9

    I just love the way u ask "What's going on guys?!!!"😂😂❤️
    Keep up the good work

  • @saicharanchitti66
    @saicharanchitti66 3 года назад +2

    wow, literally this is the wonderful series of videos that i am really searching for. thank you sir you are sharing your knowledge a lot. it was really helping for my project.

  • @anasbhih5114
    @anasbhih5114 3 года назад +2

    I love the way you simplify things! bless you

  • @xzex2609
    @xzex2609 Год назад

    your videos are one of the few bests in YT , Bro code is awsome in detailed but fast learning and you make it as easy as possible i want to knopw how your work are meant to us , i really thank you

  • @kaushallyadealwis8192
    @kaushallyadealwis8192 3 года назад +2

    Thank you so much John for the amazing tutorial; it was really helpful.

  • @williamkidwell1504
    @williamkidwell1504 3 года назад +3

    This series, like most all your tuts is well explained, but I found myself dallying over it. I've got DB experience in other areas, but this didn't really sink in right away for some reason. What I found to be the problem was, the db kept getting "lost" after I closed out the browser, which you address when you speak of it getting placed in the c:/gui directory you use. But I use different notebooks in different directories under Anaconda/Jupyter, which unfortunately makes things more complex sometimes, so the data would get "lost", change around, etc., once I moved to another notebook or tutorial.
    FWIW, if anyone has a similar problem, I found it helpful to use os.getcwd() and os.listdir() before setting up the db, so you know where you are working and what's there; and, then, run a simplified (non-tkinter) script to setup, and finally run os.listdir() a second time to ensure the creation of the db file. Then you can just use tkinter to browse the db, make updates, etc.. This technique also lend itself to browsing the db itself with sqlite3 sans tkinter, so - when you return to work in tkinter - you can know the db better, check your work, etc... $.02 HTH... :)

  • @uriyahhodge4268
    @uriyahhodge4268 4 года назад

    since the database connection is before mainloop() does this mean that the connection to your database is happening every iteration? or is this not a while loop type situation?

  • @senorviglione4925
    @senorviglione4925 3 года назад +1

    I am a high school Spanish teacher that is learning Python. You have the best videos on RUclips and I'm addicted to this Tkinter series. I like that you periodically run the code for each project. In my experience, not a lot of coding RUclipsrs implement that. Thank you for everything.

    • @Codemycom
      @Codemycom  3 года назад +2

      Glad you're enjoying the videos!

  • @DownToEngineer
    @DownToEngineer 3 года назад

    Thanks John, these courses helped a great deal.

    • @Codemycom
      @Codemycom  3 года назад

      Glad you liked them!

  • @parsabahrambeik4381
    @parsabahrambeik4381 3 года назад +2

    Hi, thank you very much for your video. I just followed your video to connect to the database ... but you did not continue with MySQL or SQL. This is very unfortunate

  • @timyoung8839
    @timyoung8839 3 года назад +1

    Really good tutorial! One question - regarding the need to comment out the 'create table' code after it has been run once since the table has been created. How would you go about doing this if you made a program that was to be run by the public. Would you make an if statement to check if the table already exist and only create a table if it doesn't? Thanks heaps!

    • @INSANE_-nj4xh
      @INSANE_-nj4xh 2 года назад +1

      Just use. , if exists
      It is command of database , will create a table if it does not exist and will not create if it exists, it will help u as we don't want multiple tables and error.
      See more for how to use if exists on utube or google

  • @Lennardish
    @Lennardish Год назад

    Hello John,
    With the help of this Sqlite3 tutorial and one video of yours in which to switch between windows, I succeeded to produce a "Menu" window in which two buttons. One button asking for a "def" to add data to a database, and one button, asking for a "def" to query.
    I just now have to find out how to make disappear the "menu" window, when I move to the add data window, and how to make the "menu" window reappear by clicking some button in the add window. But. I am thrilled because you showed me the way. Thanks. I continue my quest :) Paul

    • @Codemycom
      @Codemycom  Год назад

      Awesome, I have videos on that in the playlist :-p

    • @Lennardish
      @Lennardish Год назад

      @@Codemycom your explanation is very very clear, and to the point. You produced splendid study tutorials that more or less pave the way for better insight. Consider me to be your greatest fan 🙂

    • @Codemycom
      @Codemycom  Год назад

      @@Lennardish Thanks!

  • @mmhgarcia
    @mmhgarcia 2 года назад

    Thanks so much !!! Clear & Well explained. Regards.

  • @jakespeers6835
    @jakespeers6835 3 года назад

    Hey there, just came across this video in a google search and subscribed to you. I have a couple questions I'm hoping you can answer. I've just recently started learning python and have a decent grip on most of the basics. I'm currently working on a personal project and wondering if sqlite will work for this function. I've created a python program that scrapes web pages and converts the needed data to a clean json file. I'm now looking to add all json file data to sqlite database that I can query from my website. Is this possible to do with sqlite? I have about 5000 files (which would be index) and each file only contains text, with about 30 columns of data. Sorry for the long post, just wondering if I will be able to learn this within these videos. Also do you happen to have any videos about querying sqlite databases from websites? Thanks!

  • @sameerkhanna2051
    @sameerkhanna2051 Год назад

    Thanks for this great tutorial

  • @padhiyarkunalalk6342
    @padhiyarkunalalk6342 4 года назад +1

    Sir you are great.
    #sir can you make a video on,how to store data in pandas using GUI.
    #only pandas and tkintrr
    Don't use SQL database
    #thank you
    For teaching
    #from india

  • @luntyyy3033
    @luntyyy3033 3 года назад +1

    Really helpful!

    • @Codemycom
      @Codemycom  3 года назад

      Glad it was helpful!

  • @cofeeee77
    @cofeeee77 3 года назад

    Why this channel has only 38k subs this channel deserves more and yes
    Be sure to smash the like button

    • @Codemycom
      @Codemycom  3 года назад

      I agree! Tell your friends about it ;-)

  • @raa1403
    @raa1403 3 года назад +1

    Hey Baldy bro TNX.for this stuff

  • @elizatreglown3826
    @elizatreglown3826 2 года назад +1

    Your videos have been an absolute life saver for my Year 12 digital Technologies course. when I run this database it comes up with the error no module names 'PIL'. Do you have nay suggestions to how to fix this?

    • @nickpavlou5023
      @nickpavlou5023 Год назад

      hi eliza. you've probably worked it out by now and graduated and moved on!! 😁 but just in case you haven't (joke) you need to import Pillow... Codemy talks about it here: ruclips.net/video/NoTM8JciWaQ/видео.html

  • @sumbulk.8135
    @sumbulk.8135 3 года назад

    Hello, do we still have to write code for creating tables and stuff if we have already created a table and inserted values in SQLite Studio? Or would it be okay if we only write the connect,sqlite3 code etc?

    • @Codemycom
      @Codemycom  3 года назад

      Once you create all that stuff once, you need to remove that code and not create them again.

  • @parsabahrambeik4381
    @parsabahrambeik4381 3 года назад

    Hi, thank you very much for your video.

  • @walidramdani3953
    @walidramdani3953 4 года назад +1

    thanks for this tuto :)

  • @medmabrouki1034
    @medmabrouki1034 2 года назад

    Sir
    I need to get messagebox error if identity already exists in database with aded function

  • @vachanjinu942
    @vachanjinu942 3 года назад

    Thanks a lot sir.you are the best

  • @khizarkhan8252
    @khizarkhan8252 3 года назад

    i m facing this issue when create connection kindly provide solution for it mysql.connector.error.interface:2003 : can't connect to mysql server on ' localhost:3306' (10061 np connection could be made because the target machine actively refused it)

  • @didierleprince6106
    @didierleprince6106 Год назад

    Un big merci (:

  • @vagisangovindan7123
    @vagisangovindan7123 3 года назад +1

    can we add an entire values of a row from a table inside a label?. I am doing a Theatre management project using sql and python.

    • @Codemycom
      @Codemycom  3 года назад

      Not really sure what you mean, but give it a try to see.

    • @vagisangovindan7123
      @vagisangovindan7123 3 года назад

      @@Codemycom Got it figured out. Thanks a lot for your 6 hour tutorial. helped a ton.

  • @rithiksaran
    @rithiksaran Год назад

    sir, If i create a database in my system for my python app and send copies of my app to other systems, Will the systems connect with the database in my system when a 3rd user saves data in the database?

    • @Codemycom
      @Codemycom  Год назад

      no. how could it? Your database is on your computer. Their database is on their computer.

  • @krishnendhus6202
    @krishnendhus6202 4 года назад

    Hey could anyone helps
    .. i am making a python project on tyre shop management... with python and sql.. other than tkinter does we need any other library to manage our project??

    • @Codemycom
      @Codemycom  4 года назад

      No one can answer that, it depends entirely on what you're trying to do and what your needs are.

  • @AdelHaiba78
    @AdelHaiba78 3 года назад

    Wonderful, I need help to connect to Xampp SQL, can you help me with this or point me to a video which already exist?, Thanks and regards.

    • @luizportela2590
      @luizportela2590 3 года назад +1

      Turn on the MySQL and Apache on your Xampp and ready.

  • @kaustubhkoshe1239
    @kaustubhkoshe1239 4 года назад

    Can you give us tutorial on modern UI design using python like for c# we use metro framework also tell us how to add animations and sound for click event of button like when I press button bee bee sound will buzz of error sound will buzz

  • @bazareta6936
    @bazareta6936 4 года назад

    By the way zipcode should be treated as text
    As no math applied to it
    Any way keep going man
    I like your videos 👍

  • @Bleu-en2bf
    @Bleu-en2bf 3 года назад

    Thank you😊

  • @AbdoAhmed-vn1kt
    @AbdoAhmed-vn1kt 2 года назад

    What if i want date datatype and want to sort records by date or something?

    • @Codemycom
      @Codemycom  2 года назад

      Do it in the normal way

  • @babybigeyes3918
    @babybigeyes3918 3 года назад

    Sir how I can make a installer of python tkinter exe file which uses database

  • @diegobahamondezmunoz5840
    @diegobahamondezmunoz5840 4 года назад

    could this be done with postgreSQL instead of SQlite?

  • @ashikgrg4356
    @ashikgrg4356 Год назад

    Please make a video on "Fetching data from mysql database randomly"

  • @pymust
    @pymust Год назад

    We have to do 'pip install pillow' before using PIL.
    Anyway I really appreciate your great videoes.

  • @raniduharshana5238
    @raniduharshana5238 4 года назад

    Thanks a lot

  • @sanskargr9347
    @sanskargr9347 3 года назад

    how to do
    analogue clock in tkinter

  • @stephenaubreyantonio8110
    @stephenaubreyantonio8110 3 года назад

    I just wanted to ask if you have a video about the user will input info and it will automatically be in the database. :)

    • @Codemycom
      @Codemycom  3 года назад +1

      Of course

    • @stephenaubreyantonio8110
      @stephenaubreyantonio8110 3 года назад

      @@Codemycom by any do you know why this errorr keeps on appearing when i'm following your code.
      cannot import name 'imageTK' from 'PIL' (C:\Users\stephen antonio\anaconda3\lib\site-packages\PIL\__init__.py)

    • @Codemycom
      @Codemycom  3 года назад +1

      @@stephenaubreyantonio8110 You're using Anaconda instead of regular python..could be because of that

    • @stephenaubreyantonio8110
      @stephenaubreyantonio8110 3 года назад

      @@Codemycom I already install pip and it works just fine now, thank youuuu!!

  • @Cael901
    @Cael901 2 года назад +1

    Hello I know you have a great tutorial but I encounter some problem that I cannot understand and fixed it. I think i might miss out something very imporant while learning sql. Thank you in advance
    Traceback (most recent call last):
    File "G:\pythonprogramms\Project test.py", line 33, in
    c.execute('''CREATE TABLE addresses (
    sqlite3.OperationalError: table addresses already exists

    • @larslover6559
      @larslover6559 2 года назад +1

      Hey.. instead of just CREATE TABLE write CREATE TABLE IF NOT EXISTS.
      You are getting the error message because you are asking the computer to create something you already had created.

  • @mrci7821
    @mrci7821 3 года назад

    Please I want a possible solution for these error on c.fetchall..... AttributeError: 'sqlite3.Connection' object has no 'fetchall'

    • @Codemycom
      @Codemycom  3 года назад

      you have a typo in your code

  • @vipinpainuly9998
    @vipinpainuly9998 4 года назад

    on click button redirect to another page in python using tkiner library...
    how can it do sir?????
    ]

    • @Codemycom
      @Codemycom  4 года назад

      What do you mean by page? Tkinter doesn't have pages

  • @EnglishRoyalTea
    @EnglishRoyalTea 4 года назад

    Could you make a video about Json with tkinter python please thanks

    • @Codemycom
      @Codemycom  4 года назад

      I have videos where we deal with json from an API, just not with tkinter (but with python). Once you know how to deal with it in python, the tkinter part is irrelevant.

  • @pranavguptaa
    @pranavguptaa 3 года назад +1

    I dont have any knowledge of databases,so can i continue with the course or should i learn about basics of Database?

    • @KristoKorps
      @KristoKorps 3 года назад

      I would recommend understanding SQL syntax, like the meaning of the different statements and run through a tutorial on that first.
      Then you could use SQLite to combine that and tkinter together.

    • @pranavguptaa
      @pranavguptaa 3 года назад

      @@KristoKorps Yeah,sure🙂

  • @varman8048
    @varman8048 4 года назад

    This video was very useful...but can you also do one with MySQL too

    • @Codemycom
      @Codemycom  4 года назад +1

      I have a python mysql course

    • @varman8048
      @varman8048 4 года назад

      @@Codemycom oh okay didn't see that...thank you keep it up bro

    • @Codemycom
      @Codemycom  4 года назад +1

      @@varman8048 will do

  • @ryano699
    @ryano699 6 месяцев назад

    hi, im doing this on visual studio and its not working. is any one familiar with this issues and knows how to fix it?. the issue is with the create table section as it does not recognise the command?

    • @Codemycom
      @Codemycom  6 месяцев назад

      I never recommend visual studio

    • @ryano699
      @ryano699 6 месяцев назад

      @@Codemycom what IDE do you use in these videos

    • @Codemycom
      @Codemycom  6 месяцев назад

      Sublime Text and the Git-scm.com terminal @@ryano699

  • @ebaadkhan8501
    @ebaadkhan8501 3 года назад

    how to connect our app to a server
    plz tell us sir if u know plz i am waiting for this video plz and you are our only true teacher on the inter plz teach us how to connect our apps to a server.

    • @Codemycom
      @Codemycom  3 года назад

      connect to a server for what?

    • @ebaadkhan8501
      @ebaadkhan8501 3 года назад

      @@Codemycom if i created a heavy app then i need a server for user authentication and more things

    • @Codemycom
      @Codemycom  3 года назад

      @@ebaadkhan8501 what's a heavy app?

    • @ebaadkhan8501
      @ebaadkhan8501 3 года назад

      @@Codemycom like i build a game which needs an update so ill have to connect it to server for updates if not then how? BTW you are great i have been asking questions to many teachers but u are the only good teacher who replies to their students

  • @roastedpeanuts1994
    @roastedpeanuts1994 3 года назад

    Can you do one with SQL Server?

    • @Codemycom
      @Codemycom  3 года назад

      No sorry, that's a Microsoft thing

  • @kyanos-asteras
    @kyanos-asteras 3 года назад

    "ImportError: DLL load failed while importing _sqlite3: The specific module could not be found."
    I have installed sqlite3.dll and all demanded files according to Python's site, but I still get the same error. I want to follow these database courses, but with this error I am forced to stay here. Any ideas?

    • @Codemycom
      @Codemycom  3 года назад

      sqlite3 comes with python, there's nothing to install

    • @kyanos-asteras
      @kyanos-asteras 3 года назад

      @@Codemycom Alright, I didn't know. But why do I get this error? I need to fix this, because I definitely want to make this database and keep following these awesome courses. Thank you.

    • @Codemycom
      @Codemycom  3 года назад +1

      @@kyanos-asteras I'd go back and watch the videos again and follow them exactly. I can't guess where you went wrong..

  • @generalpinochet9821
    @generalpinochet9821 4 года назад

    how can you get the oid of any table?

    • @Codemycom
      @Codemycom  4 года назад

      I think I have a video on that in the playlist somewhere...

    • @generalpinochet9821
      @generalpinochet9821 4 года назад

      @@Codemycom I don't see it, can you please tell the name of it?

  • @iliaspelekis1765
    @iliaspelekis1765 3 года назад

    hello while i am writing .....
    c.execute("""CREATE TABLE addresses (
    first_name text,
    last_name, text
    )""")
    all appears as text in the (""" """) no commands!! what Is my syntax problem?

    • @Al-he6bs
      @Al-he6bs 3 года назад

      Same

    • @iliaspelekis1765
      @iliaspelekis1765 3 года назад

      @@Al-he6bs i found the solution!!! There is NO problem . by writing 3 quotation marks you can write comments in the next line and generally . With 1 quotation mark you can write comments only in 1 row . There is no any command !!! you simple write comments and it is working ! see next video and do the same with the quy and you will figure out

    • @Al-he6bs
      @Al-he6bs 3 года назад

      @@iliaspelekis1765 So basically, we just have to ignore them being a string. All green colors but working as what they are intended to.

    • @iliaspelekis1765
      @iliaspelekis1765 3 года назад +1

      @@Al-he6bs basically just tested ! the program still working if I put them as comments (#). i think we write them down for future use .

  • @asf196
    @asf196 2 года назад

    Pls tell me what does the database does

    • @Codemycom
      @Codemycom  2 года назад +1

      databases store data

    • @asf196
      @asf196 2 года назад

      @@Codemycom thank you.

  • @four-xdimension2486
    @four-xdimension2486 3 месяца назад

    Do I need to learn SQL before I learn database in Tkinter

    • @Codemycom
      @Codemycom  3 месяца назад +1

      Not really, you can follow along in the videos...but it couldn't hurt.

    • @four-xdimension2486
      @four-xdimension2486 3 месяца назад

      @@Codemycom Ok Sir,
      Thanks for replying🙏

  • @binkyslife
    @binkyslife Год назад

    💯💯💯💯💯

  • @holycow4889
    @holycow4889 3 года назад

    I don't completly got why it's better to use sqlite3 than using a simple .txt file to store data.
    Could anyone explain it in a few words? :D

    • @Codemycom
      @Codemycom  3 года назад

      databases are better in every conceivable way.

    • @holycow4889
      @holycow4889 3 года назад

      @@Codemycom Oh okay. Thanks for answering :)

  • @pranalibansode3922
    @pranalibansode3922 3 года назад

    It getting error as no module PIL.. what should I do ?

    • @Codemycom
      @Codemycom  3 года назад

      pip install Pillow

    • @pranalibansode3922
      @pranalibansode3922 3 года назад

      @@CodemycomThank you so much for answering my doubt. But I have already installed pip even it's not working.

    • @Codemycom
      @Codemycom  3 года назад

      @@pranalibansode3922 Some people just have trouble with it. You'll have to google it

    • @pranalibansode3922
      @pranalibansode3922 3 года назад

      @@CodemycomOk. Thank you so much. But your tutorials are excellent. Just thanks for sharing your knowledge heartly.

  • @teguh7201
    @teguh7201 3 года назад

    sorry,
    what is meant by PIL import ImageTk, image. program doesn't work because of that

    • @Codemycom
      @Codemycom  3 года назад

      You must install Pillow from the terminal

    • @teguh7201
      @teguh7201 3 года назад

      @@Codemycom and I also have a problem with root.iconbitmap

  • @pranyajain2529
    @pranyajain2529 Год назад

    is this error-checked?

  • @teguh7201
    @teguh7201 3 года назад

    what the purpose of root.iconbitmap('c:/gui/codemy.ico')? thanks later

    • @Codemycom
      @Codemycom  3 года назад

      To add the icon to the top bar of the program

    • @teguh7201
      @teguh7201 3 года назад

      @@Codemycom. But if I don't add that to the codings, will the codings make it to the end?

    • @Codemycom
      @Codemycom  3 года назад

      @@teguh7201 You don't need to add an icon if you don't want to

    • @teguh7201
      @teguh7201 3 года назад

      @@Codemycom Okay... Thank you. Your channel so helpful.

    • @Codemycom
      @Codemycom  3 года назад

      @@teguh7201 Glad you like it!

  • @nimaojaghi2427
    @nimaojaghi2427 3 года назад

    Hi My Brother And My Good Teacher Who I Learned Many Lessons From Your Teaching Here And I Have One Question That Is About My New Program Thst Is A Phonebook I Am Writing And My Question Is About Checkbutton And Button That I Want To Make One List Of Numbers With Name And Familly And Address From Database That I Made That This List Have 1 Checkbutton For Each Number And Two Buttons For Edit And Delete Now I Am Looking One Way To Know How These All Checkbuttons And Buttons In List Have Conection To Each Other That This Mean Every Record From Database In List With One Checkbutton And To Buttons For That Be In One Conection That When That Checkbutton Is Selected These To Buttons For Edit And Delete Work For That Button So We Have To Conection Here Every Record In This List Need To Be Conect With Checkbutton And Buttons To Operate On It And This Change In Database Be In See.
    Thank You Very Much God Belesed You And Your Love And Your Familly .

  • @ahmedelsayed3133
    @ahmedelsayed3133 Год назад

    Why do you use "from tkinter import *" instead of just typing "import tkinter"?

    • @Codemycom
      @Codemycom  Год назад +1

      Because that's how it needs to be.

    • @ahmedelsayed3133
      @ahmedelsayed3133 Год назад

      @@Codemycom Does that apply to other internal functions like "os"?

    • @Codemycom
      @Codemycom  Год назад

      @@ahmedelsayed3133 no, everything has it's own rules.

  • @erzio1254
    @erzio1254 4 года назад +1

    Traceback (most recent call last):
    File "C:\gui\database.py", line 2, in
    from PIL import ImageTk,Image
    ModuleNotFoundError: No module named 'PIL'
    sorry im noob pls help how to get into the ternimal

    • @Codemycom
      @Codemycom  4 года назад +1

      pip install pil
      pip install pillow

    • @kurtauerbach5883
      @kurtauerbach5883 4 года назад

      same no module named pil

    • @kurtauerbach5883
      @kurtauerbach5883 4 года назад

      @@Codemycom my windows environment cmd prompt yielded no love

    • @kurtauerbach5883
      @kurtauerbach5883 4 года назад

      i just removed the pil and icon stuff more of a hassle than what its worth

    • @BeerTrooper
      @BeerTrooper 4 года назад

      @@kurtauerbach5883 I had the same problem :
      Please try in terminal :
      "pip install Pillow" with capital "P",
      and then in head - "from PIL import ImageTK, Image
      It works for me, hope it will for you
      Have a good one

  • @leeganghalley6477
    @leeganghalley6477 3 года назад

    I copied the same code.. There was an error

    • @Codemycom
      @Codemycom  3 года назад

      then you don't have the same code...

  • @dougedmunds
    @dougedmunds 3 года назад +1

    You might have trouble with using integer for zipcode unless you can add leading zeros. Look at www.maphill.com/united-states/alaska/zip-codes-00001-00122/

  • @ianlevitt6920
    @ianlevitt6920 Год назад

    CREATE TABLE IF NOT EXISTS addresses. then no need to comment out the code !

  • @leeganghalley6477
    @leeganghalley6477 3 года назад

    It says PIL module not found

    • @Codemycom
      @Codemycom  3 года назад

      did you pip install pillow?

    • @leeganghalley6477
      @leeganghalley6477 3 года назад

      Yes

    • @Codemycom
      @Codemycom  3 года назад

      Are you sure? are you using a virtual environment? Is it installed in there? Do you see it when you type: pip freeze

    • @leeganghalley6477
      @leeganghalley6477 3 года назад

      I installed python 3.8..my friend told me that pip would be there already.

    • @Codemycom
      @Codemycom  3 года назад

      @@leeganghalley6477 pip is there, but I asked about PIL not pip

  • @djha1257
    @djha1257 Год назад

    Walter

  • @timurbabadjanov9115
    @timurbabadjanov9115 4 года назад +1

    So Walter White teaches Python?