当前位置 : 主页 > 编程语言 > python >

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

来源:互联网 收集:自由互联 发布时间:2022-06-14
文章目录 ​​if you try to install turtle:you may meet the error like this:​​ ​​python3和turtle​​ if you try to install turtle:you may meet the error like this: Probably You may have to install ​​python3-tk​​​ u


文章目录

  • ​​if you try to install turtle:you may meet the error like this:​​
  • ​​python3和turtle​​

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

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

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

python3和turtle

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


网友评论