我想用Mayavi.
virtualenv安装了.但我没有用它来安装.我手动安装了它的所有依赖项,包括VTK.
因为VTK,我按照其安装指南并安装了python包装器.
现在,如果我打开一个新的终端窗口并打开python,我可以导入vtk而不会出现任何错误.
我尝试使用以下命令安装Mayavi:
pip install mayavi
Run Code Online (Sandbox Code Playgroud)
但是发生以下错误:
Downloading/unpacking mayavi
Running setup.py egg_info for package mayavi
build_src
building extension "tvtk.array_ext" sources
building data_files sources
build_src: building npy-pkg config files
no previously-included directories found matching 'artwork'
no previously-included directories found matching 'docs/pdf'
Requirement already satisfied (use --upgrade to upgrade): apptools in /Library/Python/2.7/site-packages (from mayavi)
Requirement already satisfied (use --upgrade to upgrade): traits in /Library/Python/2.7/site-packages …Run Code Online (Sandbox Code Playgroud) import nltk
nltk.download()
Run Code Online (Sandbox Code Playgroud)
它表明[SSL:CERTIFICATE_VERIFY_FAILED].如果requests一个人可以使用verify=False,但在这里做什么.
更新:
在Mac OS X 10.7.5上使用NLTK 3.0的Python 3.6上仍然存在此错误:
更改NLTK下载程序中的索引(此处建议)允许下载程序显示所有NLTK文件,但是当尝试下载所有文件时,会发生另一个SSL错误(请参阅照片底部):
installation ×1
mayavi ×1
nltk ×1
osx-lion ×1
pip ×1
python ×1
python-2.7 ×1
python-3.x ×1
ssl ×1
vtk ×1