![]() ![]() ![]() When you try to install a version of a package which doesn't exist pip provides you with a list of packages available. If you want a more automated of finding this out you can trick pip into showing you. At the top of the page, the command to install an older version of a package is shown, for example: pip install numpy=1.16.6. Note: often, support for older versions is dropped in larger updates (so when either the first or second version number is updated), so you can skip small updates to speed up your search process.įor example, using this process, you can deduce that numpy 1.19.5 is the latest version to support Python 3.6, and numpy 1.16.6 is the latest version to support Python 2.7. This is still a manual process, but less work than trying to install every single version. If you are using an older version of Python and need the most recent version of the package that is compatible with that version, you can go to the release history (the second link at the top of the sidebar) and try different versions, scrolling down to the "Meta" section for every version. Therefore, you need Python 3.7 or higher to install this version of numpy. For the current version of numpy, the following information is listed: As you do not specify the package you are looking for, I will use numpy as an example. This shows the Python version required by the package. You can look up the package on the Python Package Index and scroll down to the "Meta" section in the left sidebar. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |