P
P
prostranstvovremya2022-03-27 01:55:17
Python
prostranstvovremya, 2022-03-27 01:55:17

PyCharm is broken and doesn't see the library?

Hello!
PyCharm does not see the turtle standard library - a turtle for learning python. (OS Linux Mint)
On another computer (Ubuntu/PyCharm) the code works without errors.
On the same run in Spyder and through the terminal: python3 1.py - works .
It was PyCharm installed from the application manager that was broken.
If you remove PyCharm installed from the application manager and install from the JetBrains website, then the code also works.
I also noticed that PyCharm with JetBrains works with python3.5 (as in the system), and PyCharm from the application manager with python3.9.

What I tried:
- select the system interpreter: /usr/bin/python3 (for some reason, the 3.9 version also appears at the specified address)
- reinstall PyCharm from application manager
- reset File > Manage IDE Settings > Restore Default Settings
Nothing helps

Code

import turtle

turtle.shape('turtle')
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.right(90)
turtle.forward(50)
turtle.right(90)
turtle.forward(50)

Please help me figure out what is the reason for such capricious behavior of PyCharm
623f99bf17c01826082955.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question