Vedo: A workaround to install vedo in Ubuntu 20.04

Created on 20 May 2020  路  2Comments  路  Source: marcomusy/vedo

Ubuntu 20.04 is shipped with Python 3.8.2 but thevtk library is not yet available in PyPI for python 3.8 hence it not possible yet to install it using pip. Sincevtk is the main dependency of vtkplotter it will not be installed.

The workaround, I found is to install vtk7 using apt package manager:

sudo apt install python3-vtk7

clone the vtkplotter library:

git clone https://github.com/marcomusy/vtkplotter.git

in the file setup.py removevtkfrom the dependencies. Change the line 15 to the following:

install_requires=[],

Now you can install vtkplotter as follows:

python setup.py install

I hope this is helpful.

Most helpful comment

There is a wheels package available ( vtk-9.0.0-cp38-cp38-linux_x86_64.whl ) on the vtk download site. https://vtk.org/download/ Doesn't that work? (no idea why it is not on pypi yet)

All 2 comments

Actually vtkplotter is in the debian repository!
So if you do
sudo apt install python3-vtkplotter
you should get version 2020.2.0 along with vtk7

(i never tested it)

https://packages.ubuntu.com/source/focal/vtkplotter

There is a wheels package available ( vtk-9.0.0-cp38-cp38-linux_x86_64.whl ) on the vtk download site. https://vtk.org/download/ Doesn't that work? (no idea why it is not on pypi yet)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

m-albert picture m-albert  路  7Comments

bhaveshshrimali picture bhaveshshrimali  路  6Comments

MarkusRosen picture MarkusRosen  路  5Comments

FedeClaudi picture FedeClaudi  路  7Comments

RubendeBruin picture RubendeBruin  路  3Comments