我正在使用pip3 list --outdated --format=freeze
对当前安装的所有包进行批量更新。
最近我注意到一个包rst2pdf
是在pip3 install -U
之后继续保留。
我在MacOS High Sierra和Ubuntu16.04中遇到了这个问题。在
从python编程的角度来看,这无关紧要,因为我可以使用它。 但从系统管理的角度来看,所有的时间包都在下载,这是在浪费时间和带宽。在
有没有办法从pip3 list --outdated
输出中删除完成的项?在
以下是命令输出:
bash-3.2$ pip3 install -U rst2pdf
Collecting rst2pdf
Requirement already up-to-date: reportlab>=2.4 in /usr/local/lib/python3.6/site-packages (from rst2pdf)
Requirement already up-to-date: pdfrw in /usr/local/lib/python3.6/site-packages (from rst2pdf)
Requirement already up-to-date: setuptools in /usr/local/lib/python3.6/site-packages (from rst2pdf)
Requirement already up-to-date: Pygments in /usr/local/lib/python3.6/site-packages (from rst2pdf)
Requirement already up-to-date: docutils in /usr/local/lib/python3.6/site-packages (from rst2pdf)
Requirement already up-to-date: pillow>=2.4.0 in /usr/local/lib/python3.6/site-packages (from reportlab>=2.4->rst2pdf)
Requirement already up-to-date: pip>=1.4.1 in /usr/local/lib/python3.6/site-packages (from reportlab>=2.4->rst2pdf)
Installing collected packages: rst2pdf
Found existing installation: rst2pdf 0.93.dev0
Uninstalling rst2pdf-0.93.dev0:
Successfully uninstalled rst2pdf-0.93.dev0
Successfully installed rst2pdf-0.93.dev0
bash-3.2$ echo $?
0
bash-3.2$ pip3 list --outdated
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
rst2pdf (0.93.dev0) - Latest: 0.93 [sdist]
更新:2018/02/22 当我卸载rst2pdf并重新安装它时,我得到了相同的结果。 下面是bash日志:
^{pr2}$
在https://pypi.python.org/pypi/rst2pdf没有可下载的包-没有可从中更新的包。您可以尝试从https://github.com/rst2pdf/rst2pdf升级
相关问题 更多 >
编程相关推荐