a. Download the graphics.py file somewhere on your computer. (Remember where you save it—you’ll need to move it into another directory later.)
b. Open up
Thonny and click
Tools -> Manage Packages.
c. Near the bottom of the window, there is a section named Target: user site packages with a link to a directory. Click the directory link.
d. A file explorer window should appear in a directory named
site-packages. Now drag and drop (i.e. copy and paste) the
graphics.py file you downloaded in step a. into this
e. Now test that the
graphics library is accessible inside of
Thonny by executing the following in the shell:
>>> from graphics import *
If it succeeded, you’re all set! If you cannot get the above command to execute without an error, reach out to your instructor.