Skip to content Skip to sidebar Skip to footer

Trying To Convert This File To Python 3 And Getting The Error Module Not Found

I'm using the solitaire.py file and trying to convert it to Python 3. It was originally 2.7 and works fine in that version but need it in 3 so I can make an AI with PyTorch to play

Solution 1:

Canvas was deprecated in Python 3.

Instead you can use tkinter by doing: [docs]

from tkinter import Canvas

Or do this:

from tkinter import *

Post a Comment for "Trying To Convert This File To Python 3 And Getting The Error Module Not Found"