简体   繁体   中英

How can pip know a package's last version?

I use pip to manage my packages, but how can I know a package's newest version?

I use the

pip install --upgrade eventlet  

find the result the version did not change. still is eventlet (0.21.0) .

But in the GitHub , you see the doc the newest version is v0.22.1 .

If a package is not updated on pypi, you cannot pip install packagename to get the latest version. If you absolutely want the latest version you can install it directly from git

git clone <git URL of library>

cd into the directory and install the package:

sudo python setup.py install

if you want to get the list of all the modules that can be updated ie the modules with updated available you can use:

pip list --outdated

This will give you the output like

.... ipython (6.2.1) - Latest: 6.3.1 [wheel] ....

allowing you to chose the packages you want to update

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM