[vtkusers] problem with installing VTK
hihighsky at gmail.com
Fri May 7 05:49:58 EDT 2010
My computer has both python2.5 and python2.6 installed. But ruuning my .py
files with python2.6 has error like this:
importError: No module named utilsExtension
So I have been choosing to use python2.5.
Is there anyway that I can install python-vtk for python2.5 in my computer?
2010/5/6 Denis Barbier <bouzim at gmail.com>
> On 2010/5/6 Tingting HAN wrote:
> > The linux distribution I use is Ubuntu 9.10. I tried sudo apt-get
> > python-vtk.
> > shau at tityro:/home/hantingting/Downloads/triMC3D/python$ sudo apt-get
> > python-vtk
> > [sudo] password for shau:
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > python-vtk is already the newest version.
> > python-vtk set to manually installed.
> > 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
> > But when I run stl_decimate.py file, it is still the same situation:
> > hantingting at tityro:~/Downloads/triMC3D/python$ python2.5
> > Traceback (most recent call last):
> > File "stl_decimate.py", line 9, in <module>
> > import vtk
> > ImportError: No module named vtk.
> > So I have installed VTK, but it still can't be found.
> > There are several people working on the same Linux computer in our lab. I
> > the user "hantingting", and I am not sudoer, as shown below:
> > hantingting at tityro:~/Downloads/triMC3D/python$ sudo apt-get install vtk
> > [sudo] password for hantingting:
> > hantingting is not in the sudoers file. This incident will be reported.
> > So the user "shau" uses sudo to install VTK. Is the problem related to
> No, if vtk is installed by apt-get, all users have access to it.
> According to
> python-vtk is available only with python2.6 on your distribution, so try
> python2.6 stl_decimate.py
> or even
> python stl_decimate.py
ETSI de Telecomunicación - office C-203-1
Dpto. Ingeniería Electrónica
Ciudad Universitaria s/n
Madrid 28040, Spain
TEL: +34 65 232 4340
Department of Photoelectric Information Engineering
Hangzhou 310027, P. R.China
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers