如何使用pipenv运行--upgrade? [英] How to run --upgrade with pipenv?

查看:82
本文介绍了如何使用pipenv运行--upgrade?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行(例如 numpy)pipenv install --upgrade numpy 尝试安装 --upgradenumpy 而不是普通的 --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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆