title: Installing Python's matplotlib on a Chromebook using either crew or the pip installer
body: <h2>EDIT</h2>
  <p>This question is different than <a href="https://stackoverflow.com/questions/36327134">matplotlib error - no module named tkinter</a> because all of those answers are either for Linux, or Windows and I am using a Chromebook with ChromeOS. The package installer on it is called 'Chromebrew' and it doesn't have either the 'tkinter' or 'python3-tk' package.</p>
  <p>I am having trouble installing and using matplotlib on the Bash Shell on a ChromeOS Chromebook using either 'crew' to install or 'pip3'. I have tried everything but when I try and import matplotlib I get the following error:</p>
  <pre><code> File &quot;/usr/local/lib/python3.6/site-packages/matplotlib/pyplot.py&quot;, line 116, in &lt;module&gt;
      _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
    File &quot;/usr/local/lib/python3.6/site-packages/matplotlib/backends/__init__.py&quot;, line 60, in pylab_setup
      [backend_name], 0)
    File &quot;/usr/local/lib/python3.6/site-packages/matplotlib/backends/backend_tkagg.py&quot;, line 6, in &lt;module&gt;
      from six.moves import tkinter as Tk
    File &quot;/usr/local/lib/python3.6/site-packages/six.py&quot;, line 92, in __get__
      result = self._resolve()
    File &quot;/usr/local/lib/python3.6/site-packages/six.py&quot;, line 115, in _resolve
      return _import_module(self.mod)
    File &quot;/usr/local/lib/python3.6/site-packages/six.py&quot;, line 82, in _import_module
      __import__(name)
    File &quot;/usr/local/lib/python3.6/tkinter/__init__.py&quot;, line 36, in &lt;module&gt;
      import _tkinter # If this fails your Python may not be configured for Tk
  ModuleNotFoundError: No module named '_tkinter'
  </code></pre>
  <p>On the terminal and I have no idea how to fix it. If anyone knows, it would be greatly appreciated.</p>
  <p>Thanks</p>