1
私はUbuntu 16.04を使用しており、インストール済みのPython 3.6をインストールしました。 via apt
。 import
はtkinter
をINGの、私はモジュールtkinterはPython 3.5で動作しますが、Python 3.6では動作しません。
ImportError: No module named '_tkinter', please install the python3-tk package
トラブルがしばしば-見たエラーを取得し、python3-tk
パッケージをインストールです。
$> python3.5 -c "import tkinter"
[no output]
$> python3.6 -c "import tkinter"
Traceback (most recent call last):
File "/usr/lib/python3.6/tkinter/__init__.py", line 37, in <module>
import _tkinter
ModuleNotFoundError: No module named '_tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.6/tkinter/__init__.py", line 39, in <module>
raise ImportError(str(msg) + ', please install the python3-tk package')
ImportError: No module named '_tkinter', please install the python3-tk package
どうすればこの問題を解決できますか?
python3-tkパッケージがインストールされていることを表示できますか? –
python3-tkを再インストールしようとしましたか? –
@BryanOakleyはい、何度か。 – oarfish