title: Scipy Optimization in Abaqus: ImportError: DLL load failed: %1 is not a valid Win32 application
body: <p>I am using python for scripting in Abaqus 6.14-3 and would like to use an optimization function from the scipy package. This version of abaqus runs with python 2.7.3 (64bit) and has numpy 1.6.2 installed. So I installed scipy 0.9.0 (32bit), which I think is the compatible version. </p>
  
  <p>Trying to import optimize I get the following error:</p>
  
  <pre><code>from scipy import optimize
  File "C:\SIMULIA\Abaqus\6.14-3\tools\SMApy\python2.7\lib\site-packages\scipy\optimize\__init__.py", line 7, in &lt;module&gt;
  from optimize import *
  File "C:\SIMULIA\Abaqus\6.14-3\tools\SMApy\python2.7\lib\site-packages\scipy\optimize\optimize.py", line 28, in &lt;module&gt;
  from linesearch import \
  File "C:\SIMULIA\Abaqus\6.14-3\tools\SMApy\python2.7\lib\site-packages\scipy\optimize\linesearch.py", line 1, in &lt;module&gt;
  from scipy.optimize import minpack2
  ImportError: DLL load failed: %1 is not a valid Win32 application.
  </code></pre>
  
  <p>From other question on this error code I assume the different bit versions might be the problem. I am not sure though if it is possible to change pyhton to the 32bit version. Also, I am not sure what bit version numpy is. </p>
  
  <p>I would appreciate any suggestions to find out the bit version of numpy and possibly how to install compatible versions.</p>