I have this line in my requirements file
django>=1.10,<1.11
Does that mean I need to have Django version >= 1.10
and then less than 1.11
?
It means it will select the latest version of the package, greater than or equal to 0.6. 10, but still in the 0.6. * version, so it won't download 0.7. 0 for example.
Typically the requirements. txt file is located in the root directory of your project. Notice we have a line for each package, then a version number. This is important because as you start developing your python applications, you will develop the application with specific versions of the packages in mind.
Yes. The pip manual [doc] has a section on the format of "requirement specifiers". These are documented in PEP-508 [pep] and PEP-440 [pep]:
The comparison operator determines the kind of version clause:
~=
: Compatible release clause==
: Version matching clause!=
: Version exclusion clause<=
,>=
: Inclusive ordered comparison clause<
,>
: Exclusive ordered comparison clause===
: Arbitrary equality clause.The comma (
","
) is equivalent to a logical and operator: a candidate version must match all given version clauses in order to match the specifier as a whole.
So in your case it means that the Django version is 1.10
or higher and not 1.11
or higher (so 1.10
is fine, 1.10.1
, as well, but not 1.11
, 1.11.1
, or 2.0.1
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With