<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hi David, </span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
    Thanks for replying. I got a similar error. But I did set up the PYTHONPATH env variable and export it. But for some reason, it doesn&#39;t see it. This is the error I got, the  complete screen output for &#39;make install&#39; is also attached.   </div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">--------------------------------------------------</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<div>running cd &quot;/Users/sgu/softwares/VTK/Wrapping/Python&quot; &amp;&amp; /opt/local/bin/python setup.py install --prefix=&quot;/Users/sgu/softwares&quot;  2&gt;&amp;1</div><div>running install</div><div>Checking .pth file support in /Users/sgu/softwares/lib/python2.7/site-packages/</div>
<div>/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -E -c pass</div><div>TEST FAILED: /Users/sgu/softwares/lib/python2.7/site-packages/ does NOT support .pth files</div>
<div>error: bad install directory or PYTHONPATH</div><div><br></div><div>You are attempting to install a package to a directory that is not</div><div>on PYTHONPATH and which Python does not read &quot;.pth&quot; files from.  The</div>
<div>installation directory you specified (via --install-dir, --prefix, or</div><div>the distutils default setting) was:</div><div><br></div><div>    /Users/sgu/softwares/lib/python2.7/site-packages/</div><div><br></div><div>
and your PYTHONPATH environment variable currently contains:</div><div><br></div><div>    &#39;&#39;</div></div><br><div class="gmail_quote">On Fri, Oct 26, 2012 at 4:33 PM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Shiyan,<br>
<br>
Did &quot;make install&quot; give an error, or did it just do nothing?  I have seen the<br>
following error on some systems:<br>
<br>
  &quot;This directory does not currently exist.  Please create it and try again,<br>
  or choose a different installation directory (using the -d or<br>
  --install-dir option).&quot;<br>
<br>
If you get the error that I quoted above, then setup.py is telling you that it<br>
needs you to specify a site-packages directory that already exists and is<br>
in the python path.<br>
<br>
If &quot;make install&quot; didn&#39;t give any error, then your problem is something else.<br>
<span class="HOEnZb"><font color="#888888"><br>
 - David<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, Oct 26, 2012 at 2:01 PM, Shiyuan &lt;<a href="mailto:gshy2014@gmail.com">gshy2014@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;        I tried to install vtk 5.8.0 on my mac 10.7 with Xcode 4.2. The<br>
&gt; `cmake` and `make` is successful but make install doesn&#39;t copy the python<br>
&gt; module( eg. VTK/wrapping/Python/vtk/__init__.py) to the<br>
&gt; $prefix-dir/lib/python2.7/site-packages.  The values I set are<br>
&gt; cmake -DCMAKE_INSTALL_PREFIX=$prefix-dir -DBUILD_SHARED_LIB=ON<br>
&gt; -DVTK_WRAP_PYTHON=ON.<br>
&gt;<br>
&gt; Any step did I miss? Thanks.<br>
</div></div></blockquote></div><br>