Python – Matplotlib-Fehler nach der Installation
滿天的星座
滿天的星座 2017-06-28 09:26:09
0
1
948

Fehler generiert:

ImportError: No module named '_tkinter', please install the python3-tk package

Die online gefundene Lösung besteht darin, das Paket python3-tk zu installieren:

Aber ich kann dieses Paket in Ubuntu 17.04, das ich verwende, nicht finden. Irgendwelche Lösungen?

滿天的星座
滿天的星座

Antworte allen (1)
世界只因有你

你把更新源换一下,然后重新试一下,换成国内阿里或者其它的。

命令行:先备份sudo /etc/apt/sources.list /etc/apt/sources.list.bak
然后编辑 sudo gedit /etc/apt/sources.list
把以下内容放进去替换掉原来的源

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse ##测试版源 deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse # 源码 deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse ##测试版源 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse # Canonical 合作伙伴和附加 deb http://archive.canonical.com/ubuntu/ xenial partner deb http://extras.ubuntu.com/ubuntu/ xenial main

save保存
命令行:sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3-tk

    Neueste Downloads
    Mehr>
    Web-Effekte
    Quellcode der Website
    Website-Materialien
    Frontend-Vorlage
    Über uns Haftungsausschluss Sitemap
    Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!