title: Tkinter TclError can't find package Tix
body: <p>This question is similar to <a href="https://stackoverflow.com/questions/22780141/tix-widgets-installation">this other question</a>.</p>
  
  <p>When I run the following code on Mac OS X (it runs fine on Windows):</p>
  
  <pre><code>import Tix 
  root = Tix.Tk()
  </code></pre>
  
  <p>I get the following error message:</p>
  
  <blockquote>
    <p>Traceback (most recent call last): File "", line 1, in 
    File
    "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tix.py",
    line 221, in <strong>init</strong> self.tk.eval('package require Tix')
    _tkinter.TclError: can't find package Tix</p>
  </blockquote>
  
  <p>The Python docs described the <a href="https://docs.python.org/2/library/tix.html" rel="nofollow noreferrer">issue</a>, but the answer below was not helpful in my case:</p>
  
  <blockquote>
    <p>If this fails, you have a Tk installation problem which must be resolved before proceeding. Use the environment variable TIX_LIBRARY to point to the installed Tix library directory, and make sure you have the dynamic object library (tix8183.dll or libtix8183.so) in the same directory that contains your Tk dynamic object library (tk8183.dll or libtk8183.so). The directory with the dynamic object library should also have a file called pkgIndex.tcl (case sensitive), which contains the line:</p>
  </blockquote>
  
  <pre><code>package ifneeded Tix 8.1 [list load "[file join $dir tix8183.dll]" Tix]
  </code></pre>
  
  <p>If anyone has experienced this error and found a work-around, please fill me in.</p>