title: Install NumPy for Python 3.2.3 on OS X 10.7.4
body: <p>I have been trying for months to get numpy installed for Python 3 but despite copious amounts of Googling and even posting to the numpy mailing list I am still no closer to a solution.</p>
  
  <p>I have managed to get it installed via MacPorts but unfortunately there doesn't appear to be a port of MatPlotLib for Python 3 which is the main reason I am trying to install numpy...so I am a bit stuck...</p>
  
  <p>I keep getting the same error whilst trying to build from the setup.py file. I have included the terminal output below.</p>
  
  <p>Thanks for any help you can offer,</p>
  
  <p>Adam.</p>
  
  <p>Here is the terminal output:</p>
  
  <pre><code>lipo: can't figure out the architecture type of: /var/folders/zj/7xymy_2n3s71ws30v3v_qnlw0000gn/T//ccbRr0Hj.out
  failure.
  removing: _configtest.c _configtest.o
  Running from numpy source directory.Traceback (most recent call last):
    File "setup.py", line 214, in &lt;module&gt;
      setup_package()
    File "setup.py", line 207, in setup_package
      configuration=configuration )
    File "/Users/adammcnicol/Downloads/numpy-1.6.2rc1/build/py3k/numpy/distutils/core.py", line 186, in setup
      return old_setup(**new_attr)
    File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/dist.py", line 917, in run_commands
      self.run_command(cmd)
    File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/dist.py", line 936, in run_command
      cmd_obj.run()
    File "/Users/adammcnicol/Downloads/numpy-1.6.2rc1/build/py3k/numpy/distutils/command/build.py", line 37, in run
      old_build.run(self)
    File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/command/build.py", line 126, in run
      self.run_command(cmd_name)
    File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/dist.py", line 936, in run_command
      cmd_obj.run()
    File "/Users/adammcnicol/Downloads/numpy-1.6.2rc1/build/py3k/numpy/distutils/command/build_src.py", line 152, in run
      self.build_sources()
    File "/Users/adammcnicol/Downloads/numpy-1.6.2rc1/build/py3k/numpy/distutils/command/build_src.py", line 169, in build_sources
      self.build_extension_sources(ext)
    File "/Users/adammcnicol/Downloads/numpy-1.6.2rc1/build/py3k/numpy/distutils/command/build_src.py", line 328, in build_extension_sources
      sources = self.generate_sources(sources, ext)
    File "/Users/adammcnicol/Downloads/numpy-1.6.2rc1/build/py3k/numpy/distutils/command/build_src.py", line 385, in generate_sources
      source = func(extension, build_dir)
    File "numpy/core/setup.py", line 410, in generate_config_h
      moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
    File "numpy/core/setup.py", line 41, in check_types
      out = check_types(*a, **kw)
    File "numpy/core/setup.py", line 271, in check_types
      "Cannot compile 'Python.h'. Perhaps you need to "\
  SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
  </code></pre>