Tcl/tk not found when building Matplot 0.87.2 under Debian 3.10a for AMD64

I am trying to build Matplot 0.87.2 from source which I got from

By following the directions at

under Debian 3.1r0a for AMD64

When I type python build, I get this error

cannot find tcl/tk headers. giving up.

/usr/lib/tcl8.4 and /usr/lib/tk8.4 both exist.

According to this previous posting in response to the same problem must be edited to make sure the libraries are found.
However, I tried editing it and the error did not change. Here is the
diff between the old and new versions of, and I'm
attaching both versions to this message.

Can anyone suggest what else I could try? Thanks.

Gil Citro

< 'linux2' : ['/usr/local', '/usr',],
< 'linux' : ['/usr/local', '/usr',], (29.6 KB) (29.6 KB)



    'linux2' : ['/usr/local', '/usr', '/usr/lib',],
    'linux' : ['/usr/local', '/usr', '/usr/lib',],

< o.tcl_lib = "/usr/local/lib"
< o.tcl_inc = "/usr/local/include"
< o.tk_lib = "/usr/local/lib"
< o.tk_inc = "/usr/local/include"
< o.tkv = ""

        o.tcl_lib = "/usr/lib"
        o.tcl_inc = "/usr/include"
        o.tk_lib = "/usr/lib"
        o.tk_inc = "/usr/include"
        o.tkv = "8.4"