Using pip uploaded graphics.py to linux
Then I tried to connect it to my test.py program, written in Python3, as follows:

import graphics 

But the interpreter gives the following error

Traceback (most recent call last): File "test.py", line 1, in import graphics ModuleNotFoundError: No module named 'graphics'

By the way, with the help of the pip list command I made sure that there is a graphics.py library on the computer. How to connect it?

  • python3 -m pip list ? - Sergey Gornostaev
  • @SergeyGornostaev, the python3 -m pip list command python3 -m pip list entered. In the list that appears, graphics.py is missing. - user329391 pm
  • So the answer is TheSaGe correct. - Sergey Gornostaev
  • @SergeyGornostaev, using pip3 install graphics.py I added this library to the list displayed by the python3 -m pip list command. After starting the program, the interpreter displayed the following ModuleNotFoundError: No module named 'Tkinter' . As I understood from articles on the Internet, Tkinter is the library that was originally shipped with Python. Do I need to download it with pip3? Thank you in advance for your response. - user329391 5:28 pm
  • In Python3, the name of this module begins with a capital letter - tkinter. - Sergey Gornostaev 5:33 pm

1 answer 1

You may have several versions of Python on your system. If you simultaneously install python2 and python3 in Linux, then the pip command will refer to the second version of python. Try the pip3 command to call a pip from the third python. The which python and which pip commands will help you understand the versions.