Unable to build the docker image Using docker desktop

Unable to build the docker image from Ubuntu:20.04

Keep failing to run pip install -r requirements.txt

Error: could not find a version that statuaries the requirement pymysql-pool package==0.3.4

Anyone faced similar issue and how can i fix?

It happens when the python version is not compatible with the package version. The same would happen without containers.