- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在使用 pip3 list --outdated --format=freeze
批量更新当前安装的所有软件包。最近我注意到一个包 rst2pdf
在 pip3 install -U
之后保留下来。
我在使用 MacOS High Sierra 和 Ubuntu 16.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 日志:
$ sudo pip3 uninstall rst2pdf
Uninstalling rst2pdf-0.93.dev0:
/usr/local/bin/rst2pdf
/usr/local/lib/python3.5/dist-packages/rst2pdf-0.93.dev0-py3.5.egg-info
......(snip)....
/usr/local/lib/python3.5/dist-packages/rst2pdf/writer.py
Proceed (y/n)? y
Successfully uninstalled rst2pdf-0.93.dev0
$
$ sudo pip3 install rst2pdf
Downloading rst2pdf-0.93.tar.gz (1.3MB)
100% |████████████████████████████████| 1.3MB 706kB/s
Requirement already satisfied: setuptools in /usr/local/lib/python3.5/dist-packages (from rst2pdf)
Requirement already satisfied: docutils in /usr/local/lib/python3.5/dist-packages (from rst2pdf)
Requirement already satisfied: reportlab>=2.4 in /usr/local/lib/python3.5/dist-packages (from rst2pdf)
Requirement already satisfied: Pygments in /usr/local/lib/python3.5/dist-packages (from rst2pdf)
Requirement already satisfied: pdfrw in /usr/local/lib/python3.5/dist-packages (from rst2pdf)
Requirement already satisfied: pip>=1.4.1 in /usr/local/lib/python3.5/dist-packages (from reportlab>=2.4->rst2pdf)
Requirement already satisfied: pillow>=2.4.0 in /usr/local/lib/python3.5/dist-packages (from reportlab>=2.4->rst2pdf)
Installing collected packages: rst2pdf
Running setup.py install for rst2pdf ... done
Successfully installed rst2pdf-0.93.dev0
$
$ 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]
$
最佳答案
https://pypi.python.org/pypi/rst2pdf 没有可下载的软件包— 没有什么可更新的。您可以尝试从https://github.com/rst2pdf/rst2pdf升级
pip install --upgrade git+https://github.com/rst2pdf/rst2pdf.git#egg=rst2pdf
关于python - "pip3 list --outdated"项目在 "pip3 install -U"之后保留剩余,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48901950/
嗨,我已经开始学习一些有关文件指针以及如何打开文件等的知识。我正在阅读 Stephen Prata 所著的《C Primer Plus 第五版》(SamsPublishing)我什至无法获得他们在我的
当我运行“npm outdated”时,它没有显示“最新”的任何内容。所有 @Angular 包都应该有至少 4.4.6 的最新版本,我预计大多数其他包也应该有更新的版本。 “当前”下列出的内容是我的
我已经为我的项目执行了“pod outdated”。这是输出: Analyzing dependencies The following pod updates are available: - Ki
当我运行“npm outdated”时,它没有显示“最新”的任何内容。所有 @Angular 包都应该有至少 4.4.6 的最新版本,我预计大多数其他包也应该有更新的版本。 “当前”下列出的内容是我的
我有一个巨大的对象列表,每个对象都包含许多图像。我想使用延迟加载来部分获取它们。我想了解如何使用 LazyDataModel 及其工作原理。 最初我认为我必须在 LazyDataModel 中仅保存可
我正在主干上创建一个补丁,将它应用到另一个分支时,出现“补丁似乎已过时”错误。我没有在 Google 上找到解决方案。主干刚刚合并到分支。 我在 Windows 7 上使用 64 位 Tortoise
我已经寻找解决方案,但找不到任何适合我的具体问题的内容,并且无法自行对其进行排序,我尝试的查询太繁重,导致我的服务器超时。 我有一个像这样的表“事件”: +-----------+----------
我在我的 package.json 文件中的 devDependencies 中指定了版本 7.3.0 中的 babelify,如下所示: "devDependencies": { ...,
我们的用例: 对于表 USERS: 更新所有行(为列 ACTIVE 设置值 'N')以防用户处于非事件状态(列 'LAST_VISIT') 60 分钟。 Google 帮助我找到了如何在数据库中获取当
我当前的项目中没有使用 kotlin,但总是显示以下警告: 当我点击“更新运行时”将显示以下弹出窗口: 这里是我使用的依赖项: 有人知道如何解决这个谷歌技巧吗? **编辑 这是 Android Stu
我想保留我的 build.gradle依赖关系是最新的。使用 Node.js,我运行 npm outdated (以及后来的 npm update )。 最接近 Gradle 的是什么? I don'
在图谱 API 文档中,以下内容位于新闻提要端点旁边的括号中: this is an outdated view, does not reflect the News Feed on facebook
我是 ant 的新手,而且更习惯 Makefile。在一个项目中,名为 Message_zh.class 等的 i18n 语言模块是在每次编译时无条件地从 zh.po 等构建的,尽管它们已经存在,这浪
我有一个带有 Gemfile 的文件夹,我可以用 bundle lock 生成 Gemfile.lock,我想通过 bundle outdated 获取可用的更新 但不需要在我的系统上安装 Gemfi
我怎么解决这个问题? 我将smartgit/hg用于svn存储库,它始终有效,并且只有一个中继。现在,我在其中启动了另一个分支,并使用“Cherry-pic”出现了这个问题: Executing a
我正在使用 Azure 静态 Web 应用来托管我的 React 网站。 我一直面临下面的错误。 yarn run v1.22.10 $ react-scripts build Creating an
我正在使用 Azure 静态 Web 应用来托管我的 React 网站。 我一直面临下面的错误。 yarn run v1.22.10 $ react-scripts build Creating an
使用具有以下内容的package.json文件 "devDependencies": { "grunt": "^0.4.5", "grunt-concurrent": "^1.0.0"
当我输入 npm outdated 时,它会显示类似于 的内容 Package Current Wanted Latest Location columnify 1.1
我正在尝试更新我的 pod,我通过 列出了 pod 更新 pod outdated podfile(此外,我什至尝试在 podfile 中输出 'Firebase/Auth', '6.3.1' 来指定
我是一名优秀的程序员,十分优秀!