python - pip安装最新版本

标签 python django pip

我是 python 和 django 的新手。在我的 requirements\common.txt 中,我有以下版本的行:

django-simple-captcha==0.5.*

问题是当我运行 pip install -r requirements\common.txt 时,因为我有那个包的版本 0.5.3,它不会将它更新到最新版本(0.5. 6), 只有pip --upgrade requirements\common.txt 会升级到最新版本。有没有办法修改 common.txt 文件,以便运行 pip install 安装最新版本?

我问这个是因为这个文件将被几个开发人员使用,如果他们已经有那个包的 0.5.3 版本,它不会升级它并且有很多包需要升级。

发送

最佳答案

-U 或 --upgrade 将更新列出的包

示例:

pip install django-simple-captcha -U

关于python - pip安装最新版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50316939/

相关文章:

python - Django 两个模型字段,相同的数据库列

django - Monkey 修补了 django auth 的登录,现在它的测试失败了

python - 使用和安装Python包时的权限问题

python - 使用实例 ID 作为特征来训练 ML 模型是否有意义?

python - 在子进程之前写出

python - 如何表示 B.C. 的日期时间在 python 中

python - 如何在服务器上没有 root 访问权限的情况下完全安装 numpy?

python - 如何修复 pip install 产生的 gcc 错误?

python - HTML 电子邮件将外部样式表转换为内联样式

python - 获取大型稀疏矩阵每行最大值的有效方法