<span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am trying to install vtk and use it along with python on my ubuntu machine. I installed VTK and i was able to configure and generate, then I did a 'sudo make install', this is giving me the following error, I am not sure which path has to be set and how to make python read .pth files from that folder, I am new to both VTK and Python, so any advice would be of great help.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks,</div><div style="font-family:arial,sans-serif;font-size:13px">Shripad D</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">make install error:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>
Checking .pth file support in /usr/local/lib/python2.7/site-packages/</div><div>/opt/bitnami/python/bin/.python2.7.bin -E -c pass</div><div>TEST FAILED: /usr/local/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 ".pth" 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> /usr/local/lib/python2.7/site-packages/</div><div><br></div><div>and your PYTHONPATH environment variable currently contains:</div>
<div><br></div><div> '/opt/bitnami/apps/django/lib/python2.7/site-packages:/opt/bitnami/subversion/lib/svn-python::/opt/bitnami/apps/django/lib/python2.7/site-packages:/opt/bitnami/subversion/lib/svn-python::'</div>
<div><br></div><div>Here are some of your options for correcting the problem:</div><div><br></div><div>* You can choose a different installation directory, i.e., one that is</div><div> on PYTHONPATH or supports .pth files</div>
<div><br></div><div>* You can add the installation directory to the PYTHONPATH environment</div><div> variable. (It must then also be on PYTHONPATH whenever you run</div><div> Python and want to use the package(s) you are installing.)</div>
<div><br></div><div>* You can set up the installation directory to support ".pth" files by</div><div> using one of the approaches described here:</div><div><br></div><div> <a href="http://packages.python.org/distribute/easy_install.html#custom-installation-locations" target="_blank">http://packages.python.org/distribute/easy_install.html#custom-installation-locations</a></div>
<div><br></div><div>Please make the appropriate changes for your system and try again.</div></div>