Cannot import tkinter after installing Python 3 with pyenv

后端 未结 3 813
小鲜肉
小鲜肉 2021-01-12 00:58

I got problems with importing tkinter after installing Python version 3.4.2 with pyenv. My system Python is version 2.7.6. I am using Ubuntu 14.04.

3条回答
  •  温柔的废话
    2021-01-12 01:26

    This problem seems to be solved now using the approach described in this post:

    • First uninstall Python 3.4.2 : pyenv uninstall 3.4.2, then
    • Run sudo apt-get install tk-dev
    • And reinstall Python 3.4.2 : pyenv install 3.4.2

提交回复
热议问题