![](/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.