如何使用pipenv运行--upgrade? [英] How to run --upgrade with pipenv?
问题描述
运行(例如 numpy)pipenv install --upgrade numpy
尝试安装 --upgrade
和 numpy
而不是普通的 --upgrade
开关的 pip 行为.
其他人有这个问题吗?
对于 pipenv 使用 update
命令,而不是 --upgrade
开关.您可以通过以下方式更新软件包:
pipenv 更新 numpy
请参阅文档中的评论.>
这也将在 Pipfile
/Pipfile.lock
中保存新版本的包,无需手动编辑.在某些情况下,此命令存在错误,但希望现在已修复.
Running (say for numpy) pipenv install --upgrade numpy
tries to install --upgrade
and numpy
instead of normal pip
behavior for --upgrade
switch.
Is anyone else having this problem?
For pipenv use update
command , not --upgrade
switch. You can update a package with:
pipenv update numpy
See comments in documentation.
This will also persist new version of package in Pipfile
/Pipfile.lock
, no manual editing needed. There was a bug with this command under certain scenarios, but hopefully it is fixed now.
这篇关于如何使用pipenv运行--upgrade?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!