You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The differences between VTK Python Wrapper and VTKPythonPackage. #43
I noticed that the original vtk repo is located here: https://gitlab.kitware.com/vtk/vtk
While its github mirror is the following: https://github.com/Kitware/VTK
Why the former use lowercase repo name, while the latter use uppercase?
In the meantime, you should be able to pip install vtk
My environment is Ubuntu 20.04 and Python 3.8.3 (managed by pyenv). I try to run the above command but failed. See the following for more info:
$ pyenv shell 3.8.3
$ pyenv virtualenv vtk
$ pyenv shell vtk
$ pip install -U pip
$ pip install vtk
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement vtk (from versions: none)
ERROR: No matching distribution found for vtk
On the other hand, I want to install mayavi which is based on vtk. So I must compile and install vtk from source manually.
Activity
jcfr commentedon Jun 10, 2020
This project was created before we updated VTK to official support build python wheel. See https://github.com/Kitware/VTK/blob/master/Documentation/dev/build.md#python-wheels
As soon as we are done addressing issue https://gitlab.kitware.com/vtk/vtk/-/issues/17695 we will update this repository adding an history section.
In the meantime, you should be able to
pip install vtkLet me know if you have any other questions,
hongyi-zhao commentedon Jun 10, 2020
I noticed that the original vtk repo is located here:
https://gitlab.kitware.com/vtk/vtkWhile its github mirror is the following:
https://github.com/Kitware/VTKWhy the former use lowercase repo name, while the latter use uppercase?
My environment is Ubuntu 20.04 and Python 3.8.3 (managed by pyenv). I try to run the above command but failed. See the following for more info:
On the other hand, I want to install mayavi which is based on vtk. So I must compile and install vtk from source manually.
Any hints for this problem?
Regards,
HY
jcfr commentedon Jun 10, 2020
This is how gitlab handle URLs, the name of the project is
VTKWe are actively working on addressing https://gitlab.kitware.com/vtk/vtk/-/issues/17695
Once this is done, wheels for python 3.8 will be available.
In the mean time, you could build the wheel locally following: https://github.com/Kitware/VTK/blob/master/Documentation/dev/build.md#python-wheels
That said, I suggest you wait as we will update the instruction to include more details.
hongyi-zhao commentedon Jun 10, 2020
Do you mean gitlab handle URLs in a case-insensitive manner?
jcfr commentedon Jun 10, 2020
It looks gitlab handle URL in lowercase.
https://gitlab.kitware.com/vtk/VTK redirects to https://gitlab.kitware.com/vtk/vtk
hongyi-zhao commentedon Jun 10, 2020
Thanks for your clarification. But IMO, use all lowercase in URL is not a bad idea for most cases.
Although some HTTP servers can distinguish case, no one will create two different projects with one named as
AAa, and the other names asaAa.