如何在linux上使用python3安装龟

she*_*hea 5 python-3.5

当我安装龟,遇到这样的问题:

在此输入图像描述

我的python版本是3.5.2,OS是Ubuntu 16.04 LTS

sss*_*sss 8

apt install python3-tk
Run Code Online (Sandbox Code Playgroud)

它在 Linux Mint 和 Ubuntu 上经过测试并完美运行......
编辑:
原因是因为turtle基于tkinter,例如: 在此处输入图片说明


fur*_*ras 2

我假设你要求Turtle画画forwardleft等等。

它已经随 Python 一起安装了。您不必安装它。可能你可能必须python3-tk使用pip3 install python3-tk或者更确切地说安装apt install python3-tk


pip search turtle
Run Code Online (Sandbox Code Playgroud)

结果的一部分

turtle (0.0.2) - Turtle is an HTTP proxy whose purpose is to throttle connections to
                 specific hostnames to avoid breaking terms of usage of those API
                 providers (like del.icio.us, technorati and so on).
Run Code Online (Sandbox Code Playgroud)

你尝试安装一些HTTP proxy

except ValueError, ve:在 Python 2 中是正确的语法,但在 Python 3 中则不是。