cloud9環境上でpythonにてbot構築中です。
matplotlibモジュールをインストール、実行したところ
tkinterが無いとエラーになりました。
Traceback (most recent call last):
File "trade03_borinja_02.py", line 4, in <module>
import matplotlib.pyplot as plt
File "/home/ec2-user/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 115, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/home/ec2-user/.local/lib/python3.6/site-packages/matplotlib/backends/init.py", line 62, in pylab_setup
[backend_name], 0)
File "/home/ec2-user/.local/lib/python3.6/site-packages/matplotlib/backends/backend_tkagg.py", line 4, in <module>
from . import tkagg # Paint image to Tk photo blitter extension.
File "/home/ec2-user/.local/lib/python3.6/site-packages/matplotlib/backends/tkagg.py", line 5, in <module>
from six.moves import tkinter as Tk
File "/usr/local/lib/python3.6/site-packages/six.py", line 92, in get
result = self._resolve()
File "/usr/local/lib/python3.6/site-packages/six.py", line 115, in _resolve
return _import_module(self.mod)
File "/usr/local/lib/python3.6/site-packages/six.py", line 82, in _import_module
import(name)
ModuleNotFoundError: No module named 'tkinter'
tkinterをinstallしようとすると、以下エラーとなります。
済みませんが、アドバイス頂けると助かります。
ec2-user:~/environment $ python3 -m pip install tkinter --user
Collecting tkinter
Could not find a version that satisfies the requirement tkinter (from versions: )
No matching distribution found for tkinter
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/03/28 08:07