cari

Rumah  >  Soal Jawab  >  teks badan

python - ralat matplotlib selepas pemasangan

Ralat dihasilkan:

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

Penyelesaian yang ditemui dalam talian ialah memasang pakej python3-tk:

Tetapi saya tidak menemui pakej ini dalam ubuntu17.04 yang saya gunakan

滿天的星座滿天的星座2709 hari yang lalu1069

membalas semua(1)saya akan balas

  • 世界只因有你

    世界只因有你2017-06-28 09:28:09

    Tukar sumber kemas kini dan cuba lagi, tukar kepada Alibaba domestik atau sumber lain.

    Baris arahan: Sandaran pertama sudo /etc/apt/sources.list /etc/apt/sources.list.bak
    Kemudian edit sudo gedit /etc/apt/sources.list
    Masukkan kandungan berikut untuk menggantikan sumber asal

    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

    simpan simpan
    Baris arahan: sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install python3-tk

    balas
    0
  • Batalbalas