VTK软件包最近已经可以通过pip
下载, 但是在Ubuntu 14.04上尝试运行pip install --user --upgrade vtk
(或使用pip3
)时,我只得到了以下输出:
Could not find any downloads that satisfy the requirement vtk in /usr/lib/pymodules/python2.7
Downloading/unpacking vtk
Cleaning up...
No distributions at all found for vtk in /usr/lib/pymodules/python2.7
Storing debug log for failure in /home/ignacio/.pip/pip.log
并且日志文件显示:
Getting page https://pypi.python.org/simple/vtk/
URLs to search for versions for vtk in /usr/lib/pymodules/python2.7:
* https://pypi.python.org/simple/vtk/
Analyzing links from page https://pypi.python.org/simple/vtk/
...
Skipping https://pypi.python.org/packages/13/7f/735fbc0dd78c91ad3693cfdfe5c91603899fc8e24909f935d46d2fde6559/vtk-8.1.0-cp27-cp27mu-manylinux1_x86_64.whl#md5=49c8d620b2affe2dc2284048659115e5 (from https://pypi.python.org/simple/vtk/) because it is not compatible with this Python
...
但是我肯定有CPython 2.7.6和3.4.3(或者说是这样),我也用pip/pip3安装了其他的包。那么它“与此Python不兼容”的原因是什么呢?
“python -c"from pip import pep425tags;print(pep425tags.supported_tags)"”的输出包括 "('cp27', 'cp27mu', 'manylinux1_x86_64')"。