Raise with message for 3.5.2 and earlier
Closes https://github.com/pandas-dev/pandas/issues/27247


Would it work to put this error in setup.py instead? Install time errors seem better than import time errors. Or are there cases where that doesn’t get run? > Would it work to put this error in setup.py instead? Install time errors seem better than import time errors. Or are there cases where that doesn’t get run?

i think if you have a old pip and install from a wheel this wont be hit in setup.py
only at import time Agreed that this should be in `setup.py`, but after thinking about it more, I'm hesitant to duplicate things that pip is doing (when used correctly).

The reported fail case in https://github.com/pandas-dev/pandas/issues/27247 was from (incorrectly) using `python setup.py develop` directly. I'd rather educate users on how pip says it should be done, rather than add duplicative checks.