[SciPy-user] ImportError: cannot import name Int8

Travis Oliphant oliphant at ee.byu.edu
Wed Aug 2 14:19:38 CDT 2006


John Hassler wrote:

> And _does_ matplotlib have to be compiled with the same compiler as 
> Python?
> john

No, you just have to set the --compiler= flag to the compiler you want 
to use.  On Windows I install the mingw compiler and then use

--compiler=mingw32 

for the config and build distutils command:

python setup.py config --compiler=mingw32 build --compiler=mingw32 install

You can replace the last install with bdist_wininst to get a windows 
installer

If you want to avoid setting the compiler every time you compile you can add

[config]
compiler=mingw32

[build]
compiler=mingw32


to the distutils.cfg  (I think that's the name but I might be wrong) 
file in the site-packages/distutils directory of your Python installation


-Travis



More information about the SciPy-user mailing list