首页 文章

在python3.5或更高版本上安装python3-tk

提问于
浏览
0

当我尝试在ubuntu 16.04上为python3.5安装python3-tk时出现以下错误,我该怎么办?

python3-tk:取决于:python3(<3.5)但是要安装3.5.1-3

2 回答

  • 0

    python3-tk 对Python 3.5或更高版本没有任何问题,您可能有一个过时的源列表 .

    sudo apt-get update

    您可以检查您的源列表是否已过时,请使用以下链接更新您的源列表

    https://repogen.simplylinux.ch/

  • 0

    rasekh,我想补充一点,如果你在Ubuntu上,在做apt-get update之后,只需通过发布即可安装

    sudo apt-get install python3-tk
    

    这基本上是this thread -albeit为Centos-所发生的事情 . 祝好运

相关问题