I want to make some plots with python3 script using pyplot library. Unfortunately, while matplotlib and pyplot are installed on labs, some dependeces are not:
>>> import matplotlib.pyplot Traceback (most recent call last): File "/usr/lib/python3.4/tkinter/__init__.py", line 39, in <module> import _tkinter ImportError: No module named '_tkinter' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 98, in <module> _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup() File "/usr/lib/python3/dist-packages/matplotlib/backends/__init__.py", line 28, in pylab_setup globals(),locals(),[backend_name],0) File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py", line 8, in <module> import tkinter as Tk, tkinter.filedialog File "/usr/lib/python3.4/tkinter/__init__.py", line 41, in <module> raise ImportError(str(msg) + ', please install the python3-tk package') ImportError: No module named '_tkinter', please install the python3-tk package
The same line works correctly in python2, but I want to write script exactly in third python. Is it possible to install this package? Thanks!