The symptom is when using the pip3 (python) version of docker compose you get :
kwargs_from_env() got an unexpected keyword argument ‘ssl_version’
Docker’s SDK for Python v7.0.0+ isn’t compatible with docker compose v1, which the python version of docker compose provides. To continue using the python version of docker-compose, ie docker compose v1, downgrade the docker SDK for python to v6.1.3.
However, as the Python version is deprecated, I’ve personally switched to docker compose v2, a golang implementation and sub-option of the Docker command.
docker compose version
Docker Compose version v2.21.0
If you still want to use the python version of docker-compose you’ll need to downgrade the docker sdk for python to version 6.1.3.
pip3 list | egrep docker
docker 7.0.0
pip3 install docker==6.1.3
Collecting docker==6.1.3
.
.
.