title: Call matlab from a Python virtual environment
body: <p>I can call MATLAB from my system python:</p>
  
  <pre><code>&gt;&gt;&gt; import matlab.engine
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>but when I load a virtual environment, I now get a segfault:</p>
  
  <pre><code>&gt;&gt;&gt; import matlab.engine
  Segmentation fault: 11
  </code></pre>
  
  <p>I've run the <a href="http://www.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html" rel="nofollow">setup.py install instructions</a> for both system python and my virtual environment. </p>
  
  <p>I expected questions <a href="http://www.mathworks.com/matlabcentral/answers/180518-why-does-matlab-engine-for-python-crash-when-using-a-non-system-default-version-of-python-on-mac" rel="nofollow">like this one</a>, in which I have to set the <code>DYLD_LIBRARY_PATH</code> explicitly would fix things, but I don't have that environment variable set when I run my system python.</p>
  
  <p>What could be different between the two python implementations that would cause this segfault?</p>
  
  <p>EDIT:
  I'm using OS X Yosemite on a Late 2013 13" Macbook Pro. I'm using Python 2.7 from a freshly installed virtual environment (NOT a virtual machine).</p>