title: Anaconda Python 32-bit is trying to load Anaconda 64-bit libraries
body: <p>I'm on Window 7 64-bit and trying to use both Anaconda Python 64-bit and 32-bit distributions on the same system.</p>
  
  <p>I want to be able to build Windows 32-bit executables for distribution (with py2exe), which requires that a 32-bit python interpreter be used.  I previously had installed Anaconda Python 64-bit to C:\Anaconda.  I have now installed the 32 bit Anaconda Python distribution to C:\Anaconda32.  However, when I attempt to run the python interpreter from C:\Anaconda32\python.exe, it is loading the 64-bit environment into my sys.path.  The result is that many library calls fail due to a 32-bit process trying to execute 64-bit libraries (I think).</p>
  
  <p>I also tried editing the path inside the cmd.exe session to only include C:\Anaconda32 and C:\Anaconda32\Scripts.</p>
  
  <p>Here's the result:</p>
  
  <pre><code>C:\Anaconda32&gt;echo %path%
  C:\Anaconda32;C:\Anaconda32\Scripts
  
  C:\Anaconda32&gt;python.exe
  Python 2.7.7 |Anaconda 2.0.1 (64-bit)| (default, Jun 11 2014, 10:41:43) [MSC v.1500 32 bit (Intel)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
  Anaconda is brought to you by Continuum Analytics.
  Please check out: http://continuum.io/thanks and https://binstar.org
  &gt;&gt;&gt; import sys
  &gt;&gt;&gt; sys.executable
  'C:\\Anaconda32\\python.exe'
  &gt;&gt;&gt; sys.path
  ['', 'C:\\Anaconda32\\python27.zip', 'C:\\Anaconda\\DLLs', 'C:\\Anaconda\\lib', 'C:\\Anaconda\\lib\\plat-win', 'C:\\Anaconda\\lib\\lib-tk', 'C:\\Anaco
  nda32', 'C:\\Anaconda', 'C:\\Anaconda\\lib\\site-packages', 'C:\\Anaconda\\lib\\site-packages\\PIL', 'C:\\Anaconda\\lib\\site-packages\\win32', 'C:\\A
  naconda\\lib\\site-packages\\win32\\lib', 'C:\\Anaconda\\lib\\site-packages\\Pythonwin', 'C:\\Anaconda\\lib\\site-packages\\runipy-0.1.0-py2.7.egg', '
  C:\\Anaconda\\lib\\site-packages\\setuptools-3.6-py2.7.egg']
  &gt;&gt;&gt;
  </code></pre>
  
  <p>The <code>C:\Anaconda\DLLs</code>, <code>C:\Anaconda\lib</code>, etc. are the problem.  Those should be <code>C:\Anaconda32\*</code>...</p>
  
  <p>I'd also like to point out that while it says <code>Anaconda 2.0.1 (64-bit)</code> later on that line it has the compiler info: <code>[MSC v.1500 32 bit (Intel)]</code> which indicates a 32-bit interpreter is running.  The call to <code>sys.executable</code> also shows that the correct interpreter is running.</p>
  
  <p>This is the result when trying to load most modules.:</p>
  
  <pre><code>&gt;&gt;&gt; import numpy as np
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "C:\Anaconda\lib\site-packages\numpy\__init__.py", line 168, in &lt;module&gt;
      from . import add_newdocs
    File "C:\Anaconda\lib\site-packages\numpy\add_newdocs.py", line 13, in &lt;module&gt;
      from numpy.lib import add_newdoc
    File "C:\Anaconda\lib\site-packages\numpy\lib\__init__.py", line 8, in &lt;module&gt;
      from .type_check import *
    File "C:\Anaconda\lib\site-packages\numpy\lib\type_check.py", line 11, in &lt;module&gt;
      import numpy.core.numeric as _nx
    File "C:\Anaconda\lib\site-packages\numpy\core\__init__.py", line 6, in &lt;module&gt;
      from . import multiarray
  ImportError: DLL load failed: %1 is not a valid Win32 application.
  &gt;&gt;&gt;
  </code></pre>
  
  <p><code>ImportError: DLL load failed: %1 is not a valid Win32 application.</code> is what happens when attempting to load a 64-bit compiled module from a 32-bit interpreter I believe.</p>
  
  <p>How do I set up the environment for 32-bit so that it will load the 32-bit libraries?  I'd prefer for my 64-bit primary installation to remain unaffected (to remain the default when I type <code>python</code>)</p>
  
  <p>Thanks!</p>
  
  <p>EDIT</p>
  
  <p><a href="https://humgenprojects.lumc.nl/trac/humgenprojects/wiki/ProgrammingCourse/SoftwareInstallation" rel="nofollow">This site</a> shows an example of what a 32-bit anaconda 2.0.1 interpreter should look like...</p>
  
  <p><code>Python 2.7.7 |Anaconda 2.0.1 (32-bit)| (default, Jun 11 2014, 10:41:43) [MSC v.1500 32 bit (Intel)]</code></p>
  
  <p>So the fact that I have <code>|Anaconda 2.0.1 (64-bit)|</code> and <code>[MSC v.1500 32 bit (Intel)]</code> means something is very wrong...</p>