【Error】ImportError: No module named _tkinter, please install the python-tk package还有turtle

Install tkinter name is python-tk

S- Upgrade apt-get

Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

S-no solution ...

About turtle

Turtle download is only available for python2 due to format issues (all sources are tried)
F1-the environment is configured to 2 ( note that there is only an equal sign! ) Then you can use pip (do not use pip3)

  • You are using pip version 9.0.1, however version 20.0.2 is
    available.You should consider upgrading via the ‘pip install
    –upgrade pip’ command. S——升级
  • pip timeout S-change source

It is not recommended to use this. Python2.7 is no longer maintained in 2020.1.1. But this way you don't need to download skinker anymore, hahaha, come with it.

F2——Download the linked file and modify the source code. See here

Published 70 original articles · Likes0 · Visits 1705

Guess you like

Origin blog.csdn.net/weixin_44807751/article/details/104898353