<div>My computer has both python2.5 and python2.6 installed. But ruuning my .py files with python2.6 has  error like this:</div>
<div>importError: No module named utilsExtension<br>So I have been choosing to use python2.5. </div>
<div>Is there anyway that I can install python-vtk for python2.5 in my computer? </div>
<div> </div>
<div> </div>
<div>2010/5/6 Denis Barbier <span dir="ltr">&lt;<a href="mailto:bouzim@gmail.com">bouzim@gmail.com</a>&gt;</span><br></div>
<div class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On 2010/5/6 Tingting HAN wrote:<br></div>
<div>
<div></div>
<div class="h5">&gt; The linux distribution I use is Ubuntu 9.10. I tried sudo apt-get install<br>&gt; python-vtk.<br>&gt; shau@tityro:/home/hantingting/Downloads/triMC3D/python$ sudo apt-get install<br>&gt; python-vtk<br>
&gt; [sudo] password for shau:<br>&gt; Reading package lists... Done<br>&gt; Building dependency tree<br>&gt; Reading state information... Done<br>&gt; python-vtk is already the newest version.<br>&gt; python-vtk set to manually installed.<br>
&gt; 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.<br>&gt; But when I run stl_decimate.py file, it is still the same situation:<br>&gt;  hantingting@tityro:~/Downloads/triMC3D/python$ python2.5 stl_decimate.py<br>
&gt; Traceback (most recent call last):<br>&gt;   File &quot;stl_decimate.py&quot;, line 9, in &lt;module&gt;<br>&gt;     import vtk<br>&gt; ImportError: No module named vtk.<br>&gt;<br>&gt; So I have installed VTK, but it still can&#39;t be found.<br>
&gt; There are several people working on the same Linux computer in our lab. I am<br>&gt; the user &quot;hantingting&quot;, and I am not sudoer, as shown below:<br>&gt;<br>&gt; hantingting@tityro:~/Downloads/triMC3D/python$ sudo apt-get install vtk<br>
&gt; [sudo] password for hantingting:<br>&gt; hantingting is not in the sudoers file.  This incident will be reported.<br>&gt; So the user &quot;shau&quot; uses sudo to install VTK. Is the problem related to this?<br><br>
</div></div>No, if vtk is installed by apt-get, all users have access to it.<br><br>According to<br>  <a href="http://packages.ubuntu.com/karmic/python-vtk" target="_blank">http://packages.ubuntu.com/karmic/python-vtk</a><br>
python-vtk is available only with python2.6 on your distribution, so try running<br>  python2.6 stl_decimate.py<br>or even<br>  python  stl_decimate.py<br><font color="#888888"><br>Denis<br></font></blockquote></div><br><br clear="all">
<br>-- <br>Best regards,<br>HAN Tingting<br><br>ETSI de Telecomunicación - office C-203-1<br>Dpto. Ingeniería Electrónica<br>Ciudad Universitaria s/n<br>Madrid 28040,  Spain<br>TEL: +34 65 232 4340<br>Department of Photoelectric Information Engineering<br>
Zhejiang University<br>Hangzhou 310027, P. R.China<br><br>