installing Mayavi with pip - no module named vtk

前端 未结 6 2013
耶瑟儿~
耶瑟儿~ 2020-12-24 11:48

I want to use Mayavi.

Situation

  • I use a MacBook Air, with OSX 10.7.3.
  • I use Python 2.7.2
  • I have virtualenv installed.
6条回答
  •  感情败类
    2020-12-24 12:29

    Your pip is probably using a different python, kind of you have vtk installed using /usr/local/bin/python, while your pip binary uses /usr/bin/python.

    Check it:

    $ head -n1 $(which pip)
    

    In order to get it solved, you can choose to use a virtualenv, or install pip using /usr/local/bin/python:

    curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | /usr/local/bin/python
    

    For more installation instructions, see http://www.pip-installer.org/en/latest/installing.html

提交回复
热议问题