[Numpy-discussion] Install error for numpy 1.6

Laurent Gautier lgautier@gmail....
Sun Jun 12 14:00:30 CDT 2011


Hi,

I did not find the following problem reported.

When trying to install Numpy 1.6 with Python 2.7.1+ (r271:86832), gcc 
4.5.2, and pip 1.0.1 (through a virtualenv 1.4.2 Python) it fails fails 
with:

       File "/usr/lib/python2.7/distutils/command/config.py", line 103, 
in _check_compiler
         customize_compiler(self.compiler)
       File "/usr/lib/python2.7/distutils/ccompiler.py", line 44, in 
customize_compiler
         cpp = cc + " -E"           # not always
     TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
     Complete output from command python setup.py egg_info:
     Running from numpy source directory.non-existing path in 
'numpy/distutils': 'site.cfg'

When crawling up the trace of errors, the jump between numpy's files and 
distutils appears to be at:

   File "numpy/core/setup.py", line 694, in get_mathlib_info
     st = config_cmd.try_link('int main(void) { return 0;}')
   File "/usr/lib/python2.7/distutils/command/config.py", line 248, in 
try_link
     self._check_compiler()


Is this know ? Is there a workaround ?


Thanks,

Laurent


More information about the NumPy-Discussion mailing list