title: Install VTK for python 3
body: <p>I am under OSX (Mojave) and using Python 3.7.0. In order to install a python package to visualise results (Mayavi) I need to install vtk with python 3 bindings.
  I have installed python 3.7.0 with brew</p>
  
  <p>I attempted the following:</p>
  
  <ul>
  <li><p><code>python3 -m pip install vtk</code>. I get:</p>
  
  <pre><code>Collecting vtk
  Could not find a version that satisfies the requirement vtk (from versions: )
  No matching distribution found for vtk
  </code></pre></li>
  <li><p><code>brew install vtk --without-python@2</code>does not allow to install the python 3 wrappers</p></li>
  <li><p><code>brew install vtk --with-python --without-python@2</code> gives: </p>
  
  <pre><code>[10%] Built target vtkCommonMath
  make: *** [all] Error 2
  
  READ THIS: https://docs.brew.sh/Troubleshooting
  </code></pre></li>
  <li><p>I also tried to follow <a href="http://ghoshbishakh.github.io/blog/blogpost/2016/07/13/building-vtk-with-python3-wrappers.html" rel="nofollow noreferrer">this tutorial</a> but I could not find  <code>VTK_WRAP_TCL</code> in the available options of the ccmake. I set the following options:</p>
  
  <ul>
  <li><p><code>PYTHON_EXECUTABLE</code> :<code>/usr/local/bin/python3</code></p></li>
  <li><p><code>PYTHON_INCLUDE_DIR</code>:          <code>/usr/local/Frameworks/Python.framework/Versions/3.7/include/python3.7m</code></p></li>
  </ul>
  
  <p>Compiling VTK goes fine. But when I try to compile the wrappers, the <code>sudo make install</code> gives: </p>
  
  <pre><code>[100%] Built target vtkpython
  Install the project...
  -- Install configuration: "Debug"
  -- Installing: /usr/lib/libvtkCommonCorePython37D-8.2.1.dylib
  CMake Error at cmake_install.cmake:36 (file):
    file INSTALL cannot copy file "/Users/marco.magliulo/Software/vtkBuild/lib/libvtkCommonCorePython37D-8.2.1.dylib"
    to "/usr/lib/libvtkCommonCorePython37D-8.2.1.dylib".
  </code></pre></li>
  </ul>
  
  <p>Is there a simple way to get the python 3 wrappers that I did not try ?
  Is there something obvious that I am missing in the different attempts I made? </p>