python3_turtle的安装(更确切的是说,是如何成功调用)

if you try to install turtle:you may meet the error like this:

在这里插入图片描述

Probably You may have to install python3-tk usingpip3 install python3-tk ,or rather apt install python3-tk(in ubuntu linux)

python3和turtle

python3 自带turtle,然而,turtle所依赖的python3-tk被移除了,所以为了能够使用turtle,您需要先安装python3-tk,然后诸如import turtle的代码就可以运行

posted @ 2023-09-04 15:32  xuchaoxin1375  阅读(22)  评论(0)    收藏  举报  来源