How to pip or easy_install tkinter on Windows

前端 未结 12 777
你的背包
你的背包 2020-11-28 22:31

My Idle is throwing errors that and says tkinter can\'t be imported.

Is there a simple way to install tkinter via pip or

12条回答
  •  迷失自我
    2020-11-28 22:42

    If you are using virtualenv, it is fine to install tkinter using sudo apt-get install python-tk(python2), sudo apt-get install python3-tk(python3), and and it will work fine in the virtual environment

提交回复
热议问题