pip 对 Python 第三方包的版本控制(qbit)
Posted qbit
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pip 对 Python 第三方包的版本控制(qbit)相关的知识,希望对你有一定的参考价值。
- PEP 440: https://www.python.org/dev/pe...
- 出处: https://pip.pypa.io/en/stable...
Operator | Description | Example |
---|---|---|
> | Any version greater than the specified version. | >3.1: any version greater than 3.1. |
< | Any version less than the specified version. | <3.1: any version less than 3.1. |
<= | Any version less than or equal to the specified version. | <=3.1: any version less than or equal to 3.1. |
>= | Any version greater than or equal to the specified version. | >=3.1: version 3.1 and greater. |
== | Exactly the specified version. | ==3.1: only 3.1. |
!= | Any version not equal to the specified version. | !=3.1: any version other than 3.1. |
~= | Any compatible release. Compatible releases are releases that are within the same major or minor version, assuming the package author is using semantic versioning. | ~=3.1: version 3.1 or later, but not version 4.0 or later. ~=3.1.2: version 3.1.2 or later, but not version 3.2.0 or later. |
* | Can be used at the end of a version number to represent all, | ==3.1.*: any version that starts with 3.1. Equivalent to ~=3.1.0. |
本文出自 qbit snap
以上是关于pip 对 Python 第三方包的版本控制(qbit)的主要内容,如果未能解决你的问题,请参考以下文章