2

I'm having a trouble downloading the graphics.py file and locating at the appropriate directory.

To import the graphics library I downloaded the file at https://mcsp.wartburg.edu/zelle/python, then I located at the LIB directory (I also tried at the site-packages directory which is inside the LIB directory).

But when I try to import the library it doesn't works. The python IDLE just displays

import graphics
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import graphics
ModuleNotFoundError: No module named 'graphics'

How can I solve this problem?

martineau
  • 119,623
  • 25
  • 170
  • 301
mateo
  • 21
  • 1

2 Answers2

1

Welcome to StackOverflow! You're english isn't that bad don't worry about it.

What I would recommend you do is actually install PIP which can be found here: https://pip.pypa.io/en/stable/installing/

Then, once it is installed (and is the correct version), install it from here: https://pypi.org/project/graphics.py/

Hope this helps!

damaredayo
  • 1,048
  • 6
  • 19
  • Thanks for your comment! I just installed the files from https://pypi.org/project/graphics.py/. I wonder where should I have to locate the files. Thanks. – mateo Mar 13 '20 at 17:33
0

Just keep the graphics.py file in the working directory instead of site-packages and try importing it. It should work.