I need to have a standalone version of the project I am developing and I used pyinstaller in the following way:
pyinstaller MainWindow.py --hidden-import=vtkm