`pip install pkg❮1.999` ? (intermediate) anthony explains #414

preview_player
Показать описание
today I show an oddity of a requirements file due to an old behaviour of pip (and a rather surprising behaviour of `packaging`!)

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

Hi Anthony, not related to current video - could you make a video about why you're using exit() ? ;) I've noticed that on the end of file you always call exit with results of main function as an argument. I know how exit, quit, sys.exit etc works, but WHY to use it if it's end of script anyway ? :)

marcinbazydlo
Автор

I wonder if the bug also happened declaring the dependency as:

refactorlib[cheetah]~=0.15.0

_baco
Автор

it seems like having wat 2.0a1 installed by running `pip install --pre 'wat>=1, <2'` is the expected behaviour.

The `--pre` flag is set indicating that pre-releases and development versions are to be included, and 2.0a1 seems to satisfy the constraint: 1.0 <= x < 2.0.

Did this get changed because it was too much of foot gun or is it actually _not_ the expected behaviour (and I'm just missing something)?

andrewrosss
Автор

As someone who's working with python 2.6 and 2.7 on a daily basis: Yes, I've got bigger problems then an outdated pip.. :D

RoelAdriaans