简体   繁体   中英

Pip cannot find a specific version of VTK package although it is in PyPI

I accidentally installed VTK 9.0.0, but want to downgrade to 8.1.2.

I uninstalled VTK 9.0.0 using pip uninstall but now I cannot install 8.1.2 for a weird unknown reason:

$ pip install "vtk==8.1"
ERROR: Could not find a version that satisfies the requirement vtk==8.1 (from versions: 9.0.0)
ERROR: No matching distribution found for vtk==8.1

The version 8.1 is definitely in PyPI. Why pip complaints and does not the needed operation?

This answer is based on @metatoaster's comment.

In this case, pip could not find VTK 8.1 because the package VTK is not available for Python 3.8 for versions < 9.0, while I used Python 3.8.

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