[Docker Compose] Docker Compose Frequently Asked Questions (FAQs)

Docker Compose FAQs

ImportError: No module named ‘requests.packages.urllib3’

1
2
3
4
# CentOS 7.x
$ docker-compose up
...
ImportError: No module named 'requests.packages.urllib3'

Install specific version of requests.

1
2
3
$ sudo pip install requests urllib3 pyOpenSSL --force --upgrade

$ sudo pip install --upgrade --force-reinstall 'requests==2.6.0'

References