简体   繁体   English

为什么我在安装 pip 时没有获得最新版本的 python package?

[英]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.

相关问题 为什么在安装 python 3.6 的 ratfun 包时出现“错误命令出错,退出状态为 1”? - Why am I getting an "ERROR Command errored out with exit status 1" when installing the ratfun package for python 3.6? 我在安装pygmaps时收到pip版本升级消息 - I am getting pip version upgrade message while installing pygmaps ERROR INSTALLING KIVY:为什么我在执行后出错:“python -m pip install kivy”? - ERROR INSTALLING KIVY: Why am I Getting Error After Executing: "python -m pip install kivy"? 为什么 pip 安装了不兼容的软件包版本? - Why is pip installing an incompatible package version? 为什么 pip 安装的是旧版本的 package? - Why is pip installing an old version of my package? 安装软件包时,Python pip版本冲突 - Python pip version conflict while installing a package 我尝试使用 pip 安装 win32gui,但出现此错误。 我正在使用 python 3.8.5,我也有最新版本的 pip - I tried installing win32gui using pip but I'm getting this error. I am using python 3.8.5, I have latest version of pip too 为什么我在安装 pip 后立即收到 ImportError: No module named pip '? - Why am I getting ImportError: No module named pip ' right after installing pip? 为什么 pip 不安装最新版本的软件包,即使 PyPI 上有更新版本? - Why isn't pip installing the latest version of a package, even when a newer version is on PyPI? 为什么安装时pip版本不是9? - Why pip version isn't 9 when installing?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM