Pip install SQLAlchemy requires setuptools version>40

Inside my docker conatiner, I’m installing python3 and then setuptools, when I checked setuptools version using easy_install --version it was setuptools 46.0.0 .
But when I’m installing SQLAlchemy, first it get stuck at installing build dependencies and then give some timeout error and then at the end it says:

Error: No matching distribution found for setuptools>=40.0.0.
What can be the issue?