'Resolve dependency mismatch of 2 Python libraries

I'm using target-postgres and tap-surveymonkey. I can install tap-surveymonkey directly when I create a Docker container and it works. However, when I want to include both libraries in the requirements.txt file, I get this error:

pip-compile 
Could not find a version that matches singer-python==5.6.0,==5.9.0 (from singer-target-postgres==0.2.4->-r requirements.in (line 3))
Tried: 0.1.0, ..., 5.12.2
Skipped pre-versions: 1.6.0a1, 1.6.0a2, 1.6.0a3, 1.6.0a4
There are incompatible versions in the resolved dependencies:
  singer-python==5.9.0 (from singer-target-postgres==0.2.4->-r requirements.in (line 3))
  singer-python==5.6.0 (from tap-surveymonkey==1.0.1->-r requirements.in (line 2))

How can I resolve it?

I've tried:

pip install --upgrade pip
pip install --upgrade setuptools


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source