pip install specific version of a Python Package





If you want to install a specific version of a Python Package, then you can make use of the pip index version command to first know which all versions of the package are available.


Show the list of available versions of a Package

    % pip index versions rumps
    
    WARNING: pip index is currently an experimental command. 
    It may be removed/changed in a future release without prior warning.
    rumps (0.4.0)
    Available versions: 0.4.0, 0.3.0, 0.2.2, 0.2.1, 0.2.0, 0.1.5, 0.1.4
      INSTALLED: 0.4.0
      LATEST:    0.4.0
    

    As you can see, I have installed version 0.4.0 of package rumps and have 0.3.0, 0.2.2, 0.2.1, 0.2.0, 0.1.5, 0.1.4 available.


How to install a specific version of a pip package







Author Info:

Rakesh (He/Him) has a Masters Degree in Computer Science with over 15+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

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