The second approach packs all that functionality in one shell command, so that’s the one you should use in practice. The first one requires two commands - the first one for uninstalling the current version, and the second for installing the version you want. There are 2 must-know ways to install a specific version of a Python package. How to Install Pip Specific Version of a Python Package ![]() You now know how to check for the currently installed package version and also how to list all the available versions, so next, let’s see how to pip install a specific version of a package. Version 2.0.0 is the most recent, but you can go far, far back, depending on the Python version you have installed on your system or inside a virtual environment. Image 2 - Available Pandas package versions (image by author) The following shell command prints the currently installed version: Let’s check them out for the pandas Python package.
0 Comments
Leave a Reply. |