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

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