title: Installation of pygame with Anaconda
body: <p>I have <code>Anaconda 1.6.2</code>, which uses <code>Python 2.7.5</code>, installed on a <code>Windows 7 64-bit</code> system. <br>
  I need to install <code>Pygame 1.9.1</code> and this is not part of the <code>conda repository</code>.  <br>
  I cannot run the <code>Windows installer</code> because <code>Anaconda</code> has not made registry entries for <code>Python</code> and the <code>.msi</code> does not recognize the Python version. <br>
  So, I tried to install <code>Pygame</code> from source. What I originally wanted to do was create a conda package as per the instructions here <a href="http://www.continuum.io/blog/conda">http://www.continuum.io/blog/conda</a> As per those instructions, the package (pygame in this case) is first installed from source and then a conda package is created. But, I failed in the pygame install. <br>
  On running the <code>setup.py</code> file <code>("python setup.py install")</code>, a run time error <br> 
  <code>"mingw32: required environment variable MINGW_ROOT_DIRECTORY not set"</code> is thrown. <br> After setting the environment variables, I ran the setup again and this time, the runtime error became "The dependencies are linked to the wrong C runtime for Python 2.7". </p>
  
  <p>Error:</p>
  
  <pre><code>WARNING, DLL for smpeg library not found.
  WARNING, DLL for tiff library not found.
  WARNING, DLL for SDL_ttf library not found.
  WARNING, DLL for SDL_image library not found.
  WARNING, DLL for vorbisfile library not found.
  WARNING, DLL for jpeg library not found.
  WARNING, DLL for vorbis library not found.
  WARNING, DLL for SDL_mixer library not found.
  WARNING, DLL for png library not found.
  WARNING, DLL for SDL library not found.
  WARNING, DLL for ogg library not found.
  WARNING, DLL for z library not found.
  WARNING, DLL for portmidi library not found.
  running install
  running build
  running build_py
  running build_ext
  Traceback (most recent call last):
    File "setup.py", line 491, in &lt;module&gt;
      setup(**PACKAGEDATA)
    File "C:\Anaconda\lib\distutils\core.py", line 152, in setup
      dist.run_commands()
    File "C:\Anaconda\lib\distutils\dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "C:\Anaconda\lib\distutils\dist.py", line 972, in run_command
      cmd_obj.run()
    File "C:\Anaconda\lib\distutils\command\install.py", line 563, in run
      self.run_command('build')
    File "C:\Anaconda\lib\distutils\cmd.py", line 326, in run_command
      self.distribution.run_command(command)
    File "C:\Anaconda\lib\distutils\dist.py", line 972, in run_command
      cmd_obj.run()
    File "C:\Anaconda\lib\distutils\command\build.py", line 127, in run
      self.run_command(cmd_name)
    File "C:\Anaconda\lib\distutils\cmd.py", line 326, in run_command
      self.distribution.run_command(command)
    File "C:\Anaconda\lib\distutils\dist.py", line 972, in run_command
      cmd_obj.run()
    File "setup.py", line 352, in run
      sys.version_info[:2])
  RuntimeError: The dependencies are linked to the wrong C runtime for Python 2.7
  </code></pre>
  
  <p>The <code>distutils.cfg</code> file in \Anaconda\Lib\distutils reads </p>
  
  <pre><code>[build]
  compiler = mingw32
  </code></pre>
  
  <p>Please tell me what I need to do to install <code>Pygame with Anaconda</code>. I'm not able to find any information (barely any) regarding this combination. I would just like to add that Pygame was originally working when I had a Python 2.7.5 installation. The problem has come up now when I uninstalled my original Python installation and moved to Anaconda.</p>
  
  <p>Thank you!</p>