[英]Why I am not getting the lattest version of a python package when installing it with pip?
I'd like the latest version of vtk under python 3.6我想要python 3.6下最新版本的vtk
Pipy.org indicates version 9.0.0: https://pypi.org/project/vtk/#files The url instructs to use the command: Pipy.org 表示版本 9.0.0: https://pypi.org/project/vtk/#files url 指示使用命令:
pip install vtk
I have both python 2.7 and 3.6 installed so I actually use:我同时安装了 python 2.7 和 3.6,所以我实际使用:
pip3 install vtk
But this installs version 8.1.2, not 9.0.0但这安装的是 8.1.2 版本,而不是 9.0.0
If I run the command:如果我运行命令:
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
The same thing happens for python2.7 and pip.同样的事情发生在 python2.7 和 pip 上。 Why am I not getting the version listed at PiPy.org?
为什么我没有得到 PiPy.org 上列出的版本?
vtk
8.1.2 provides wheels for Linux, MacOS and w64. vtk
8.1.2 为 Linux、MacOS 和 w64提供轮子。
But vtk
9.0.0 provides wheels for MacOS and w64, not for Linux.但是
vtk
9.0.0 为 MacOS 和 w64提供轮子,而不是为 Linux 提供轮子。
On Linux you have to use version 8.1.2.在 Linux 上,您必须使用版本 8.1.2。 Or download a wheel from https://vtk.org/download .
或者从https://vtk.org/download下载轮子。 Or compile VTK from sources.
或者从源代码编译VTK。
VTK 9.0.1 has been released on PyPI on Jun 24, 2020, with Linux-compatible wheels this time: 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.