![](/img/trans.png)
[英]Why am I getting an "ERROR Command errored out with exit status 1" when installing the ratfun package for python 3.6?
[英]Why I am not getting the lattest version of a python package when installing it with pip?
我想要python 3.6下最新版本的vtk
Pipy.org 表示版本 9.0.0: https://pypi.org/project/vtk/#files url 指示使用命令:
pip install vtk
我同时安装了 python 2.7 和 3.6,所以我实际使用:
pip3 install vtk
但这安装的是 8.1.2 版本,而不是 9.0.0
如果我运行命令:
pip3 install vtk==9.0.0
Collecting vtk==9.0.0
Could not find a version that satisfies the requirement vtk==9.0.0 (from versions:
8.0.0.dev20170717, 8.1.0, 8.1.1, 8.1.2) No matching distribution found for vtk==9.0.0
同样的事情发生在 python2.7 和 pip 上。 为什么我没有得到 PiPy.org 上列出的版本?
vtk
8.1.2 为 Linux、MacOS 和 w64提供轮子。
但是vtk
9.0.0 为 MacOS 和 w64提供轮子,而不是为 Linux 提供轮子。
在 Linux 上,您必须使用版本 8.1.2。 或者从https://vtk.org/download下载轮子。 或者从源代码编译VTK。
VTK 9.0.1 已于 2020 年 6 月 24 日在 PyPI 上发布,这次带有与 Linux 兼容的轮子:
path/to/python3 -m pip install vtk==9.0.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.