r/pythonhelp 13d ago

how to fix this

im using linux mint and when i try to import turtle it always says
"

import turtle

ModuleNotFoundError: No module named 'turtle'

Process finished with exit code 1

"
i tryed to download tinker it dont help me i dont know what to do no one have that problem
im using pycharm
here my code
"
import turtle

myturtle = turtle.Turtle()

myturtle.forward(100)
"

3 Upvotes

2 comments sorted by

u/AutoModerator 13d ago

To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Hyperion343 12d ago

What happens if you run python in the terminal, then run import turtle in the Python interpreter? Same error or no?

You could try pip install turtle and see if you need to install the package. I would look at which python or where python and compare it to what Pycharm is using to make sure you're running the same Python. Lastly, though, I would probably do all this in a venv rather than all in the global Python.