gaodebao
V2EX  ›  问与答

matplotlib 使用时出错

  •  
  •   gaodebao · Jun 23, 2017 · 1373 views
    This topic created in 3250 days ago, the information mentioned may be changed or developed.

    产生错误:

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

    在网上找到的解决方法是安装 python3-tk 包:

    但是在我使用的 ubuntu17.04 中找不到这个包,求解决办法?

    2 replies    2017-06-23 19:10:51 +08:00
    lcdtyph
        1
    lcdtyph  
       Jun 23, 2017 via iPhone
    python3.1 之后自带 tkinter
    gaodebao
        2
    gaodebao  
    OP
       Jun 23, 2017
    @lcdtyph 但是导入时出错:

    ImportError: No module named '_tkinter', please install the python3-tk package
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1056 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 18:12 · PVG 02:12 · LAX 11:12 · JFK 14:12
    ♥ Do have faith in what you're doing.