升级过时的“pip install--user”包的单个命令。
pip-upgrade-pkgs的Python项目详细描述
pip_upgrade_包
升级过时的pip install --user
包的单个命令。
$ pip_upgrade_pkgs
=====================================================
UPGRADING ALL OUTDATED "pip install --user" PACKAGES:
=====================================================
Outdated packages detected = 16.
Initiating upgrading...
No. Package Version Latest Type Status
--- ------------------ --------------- --------------- ----- --------
1 Cython 0.29 0.29.1 wheel UPGRADED
2 ipython 6.2.1 7.1.1 wheel UPGRADED
3 ipywidgets 7.0.5 7.4.2 wheel UPGRADED
4 jupyter-client 5.1.0 5.2.3 wheel UPGRADED
5 jupyter-console 5.2.0 6.0.0 wheel UPGRADED
6 matplotlib 2.1.0 3.0.2 wheel UPGRADED
7 numpy 1.15.1 1.15.4 wheel UPGRADED
8 pandas 0.21.0 0.23.4 wheel UPGRADED
9 Pillow 5.2.0 5.3.0 wheel UPGRADED
10 qtconsole 4.3.1 4.4.3 wheel UPGRADED
11 setuptools 40.0.0 40.6.2 wheel UPGRADED
12 sympy 1.1.1 1.3 sdist UPGRADED
13 virtualenv 16.0.0 16.1.0 wheel UPGRADED
14 virtualenv-clone 0.3.0 0.4.0 wheel UPGRADED
15 wheel 0.31.1 0.32.3 wheel UPGRADED
16 youtube-dl 2018.9.26 2018.11.23 wheel UPGRADED
SUMMARY:
No. of packages upgraded = 16/16
No. of upgrade errors = 0/16
安装要求
Python3.5,3.6,3.7 pip~=18.0
操作系统
Ubuntu16.04(Xenial)及以上版本
安装
提交此终端命令:
$ pip install --user pip_upgrade_pkgs
对于Python3.5:
此软件包将安装在~/.local/lib/python3.5/site-packages/pip_upgrade_pkgs中
此包执行脚本将安装在~/.local/bin/pip_upgrade_pkgs中。
执行:
提交此终端命令:
$ pip_upgrade_pkgs
或者,访问其模块并执行其main()函数:
$ python3
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip_upgrade_pkgs
>>> pip_upgrade_pkgs.main()