How to list all versions of Python Modules Available using pip/pip3


In order to list all versions of a module in Python that you are looking to download using pip or pip3 module, you can make use of the below syntax.

Syntax:
pip index versions <module-name>

Examples:
% pip3 index versions panda

WARNING: pip index is currently an experimental command. It may be removed/changed in a future release without prior warning.
panda (0.3.1)

Available versions: 0.3.1, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.5.macosx-10.9-x86_64
% pip3 index versions boto3

boto3 (1.27.0)
Available versions: 1.27.0, 1.26.165, 1.26.164, 1.26.163, 1.26.162, 1.26.161, 1.26.160, 
... 0.0.22, 0.0.21, 0.0.20, 0.0.19, 0.0.18, 0.0.17, 0.0.16, 0.0.14, 0.0.13, 0.0.12, 0.0.11, 0.0.10, 
0.0.9, 0.0.8, 0.0.7, 0.0.6, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1

If you have a specific module already installed, you will get more info like below.

% pip3 index versions wheel 

wheel (0.40.0)
Available versions: 0.40.0, 0.38.4, 0.38.3, 0.38.2, 0.38.1, 0.37.1, 
...0.9, 0.8, 0.7, 0.6, 0.5, 0.4.2, 0.4.1, 0.4, 0.3, 0.2, 0.1

  INSTALLED: 0.40.0
  LATEST:    0.40.0
-

Facing issues? Have Questions? Post them here! I am happy to answer!


Author: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

Copyright © Code2care 2023 | Privacy Policy | About Us | Contact Us | Sitemap