简体   繁体   中英

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

Pipy.org indicates version 9.0.0: https://pypi.org/project/vtk/#files The url instructs to use the command:

pip install vtk

I have both python 2.7 and 3.6 installed so I actually use:

pip3 install vtk

But this installs version 8.1.2, not 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. Why am I not getting the version listed at PiPy.org?

vtk 8.1.2 provides wheels for Linux, MacOS and w64.

But vtk 9.0.0 provides wheels for MacOS and w64, not for Linux.

On Linux you have to use version 8.1.2. Or download a wheel from https://vtk.org/download . Or compile VTK from sources.

VTK 9.0.1 has been released on PyPI on Jun 24, 2020, with Linux-compatible wheels this time:

path/to/python3 -m pip install vtk==9.0.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM