For Linux
Debian based distros:
sudo apt-get install python3-tk
RPM based distros:
sudo yum install python3-tkinter
For windows:
For Windows, I think the problem is you didn’t install complete Python package. Since Tkinter should be shipped with Python out of box. See: http://www.tkdocs.com/tutorial/install.html . Good python distributions for Windows can be found by the companies Anaconda or ActiveState.
Test the python module
python -c "import tkinter"
p.s. I suggest installing ipython, which provides powerful shell and necessary packages as well.
Related Posts:
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- matplotlib error – no module named tkinter
- How to update a plot in matplotlib?
- ImportError: DLL load failed: The specified module could not be found
- ImportError: DLL load failed: The specified module could not be found
- Purpose of “%matplotlib inline”
- Purpose of “%matplotlib inline”
- TypeError: only size-1 arrays can be converted to Python scalars (matplotlib)
- Showing an image with pylab.imshow()
- How do you change the size of figures drawn with Matplotlib?
- PermissionError: [Errno 13] Permission denied
- RuntimeWarning: invalid value encountered in divide
- Is “from matplotlib import pyplot as plt” == “import matplotlib.pyplot as plt”?
- ValueError: operands could not be broadcast together with shapes (5,) (30,)
- ImportError: No module named matplotlib.pyplot
- matplotlib savefig() plots different from show()
- Plotting a 2D heatmap with Matplotlib
- No handles with labels found to put in legend
- How to plot a histogram using Matplotlib in Python with a list of data?
- In Matplotlib, what does the argument mean in fig.add_subplot(111)?
- Unable to plot Double Bar, Bar plot using pyplot for ndarray
- How to pip or easy_install tkinter on Windows
- tkinter gui with progress bar
- filedialog, tkinter and opening files
- pandas DataFrame “no numeric data to plot” error
- How to change the font size on a matplotlib plot
- How can I create a dropdown menu from a List in Tkinter?
- Updating matplotlib in virtualenv with pip
- TypeError: generatecode() takes 0 positional arguments but 1 was given
- How do you change the size of figures drawn with Matplotlib?
- How do I set the figure title and axes labels font size in Matplotlib?
- How to customize a scatter matrix to see all titles?
- Is there a list of line styles in matplotlib?
- Tkinter understanding mainloop
- takes 1 positional argument but 2 were given
- Add Legend to Seaborn point plot
- How to pass arguments to a Button command in Tkinter?
- Tkinter understanding mainloop
- Matplotlib automatic legend outside plot
- Changing the “tick frequency” on x or y axis in matplotlib?
- AttributeError: ” object has no attribute ”
- Plotting multiple different plots in one figure using Seaborn
- Plot pie chart and table of pandas dataframe
- ModuleNotFoundError: No module named ‘matplotlib’
- Change figure size and figure format in matplotlib
- Add Legend to Seaborn point plot
- Improve subplot size/spacing with many subplots in matplotlib
- Python equivalent to ‘hold on’ in Matlab
- How to add title to subplots in Matplotlib
- Overcome ValueError for empty array
- Using %matplotlib notebook after %matplotlib inline in Jupyter Notebook doesn’t work
- How to change a ‘LinearSegmentedColormap’ to a different distribution of color?
- Display image as grayscale using matplotlib
- Why matplotlib does not plot?
- reducing number of plot ticks
- How to make a 3D scatter plot in matplotlib
- How to draw vertical lines on a given plot in matplotlib
- Modify the legend of pandas bar plot
- Plot a horizontal line using matplotlib
- Changing the “tick frequency” on x or y axis in matplotlib
- How can I set the aspect ratio in matplotlib?
- Remove xticks in a matplotlib plot?
- How to add title to seaborn boxplot
- python SyntaxError: invalid syntax %matplotlib inline
- How to make a histogram from a list of data
- How do I change the figure size with subplots?
- ValueError: Unknown projection ‘3d’ (once again)
- How to change plot background color?
- raise LinAlgError(“SVD did not converge”) LinAlgError: SVD did not converge in matplotlib pca determination
- TypeError: Invalid dimensions for image data when plotting array with imshow()
- matplotlib does not show my drawings although I call pyplot.show()
- Plot correlation matrix using pandas
- Python, Matplotlib, subplot: How to set the axis range?
- How to put the legend out of the plot
- Matplotlib: TypeError: can’t multiply sequence by non-int of type ‘numpy.float64’
- How to plot an array in python?
- Using Tkinter in python to edit the title bar
- Seaborn Lineplot Module Object Has No Attribute ‘Lineplot’
- Difference between import tkinter as tk and from tkinter import
- Matplotlib plots: removing axis, legends and white spaces
- Why do many examples use `fig, ax = plt.subplots()` in Matplotlib/pyplot/python
- Label axes on Seaborn Barplot
- Plot a histogram such that the total area of the histogram equals 1
- matplotlib: plot multiple columns of pandas data frame on the bar chart
- How to change legend size with matplotlib.pyplot
- An equivalent function to matplotlib.mlab.bivariate_normal
- plot a circle with pyplot
- Superscript in Python plots
- IPython, “name ‘plt’ not defined”
- How to handle a Button click event
- Plotting a python dict in order of key values
- MovieWriter ffmpeg unavailable; trying to use class ‘matplotlib.animation.PillowWriter’ instead
- How to plot normal distribution
- How do I compile my Python 3 app to an .exe?
- Equivalent to matlab’s imagesc in matplotlib? [duplicate]
- Installing Pylab/Matplotlib
- TypeError: zip argument #2 must support iteration
- numpy/scipy/ipython:Failed to interpret file as a pickle
- alueError: ordinal must be >= 1