If Python stops, the screen says: UnicodeEncodeError: 'charmap' codec can't encode character '\u0259'. \u0259 is the letter ə. Capital Ə is in the same place. If the program runs and the screen shows a square or ?, the letter went out and the font cannot draw it. Those are two different stops.
Turkish pages say cp1254. Python's table has ü, ö, ş, ğ, ç, and ı. It does not have ə. That guide does not fix this letter.
Do not change everything at once. Check the cause in order.