'Docker command is working but docker compose command not working | Windows 10 Pro , 64 bit

I have installed docker desktop application through "Docker Desktop Installer" exe file.

Docker application is working from shortcut icon also command docker run hello-world working fine enter image description here, but when I tried docker compose command it is showing below error screenshot enter image description here.

D:\workspace\docker-compose_Example\composetest>docker-compose up

Traceback (most recent call last): File "docker-compose", line 2, in <module> File "c:\jenkins\workspace\dsg_compose_1.29.2\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module File "compose\cli\main.py", line 29, in <module> File "c:\jenkins\workspace\dsg_compose_1.29.2\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module File "compose\metrics\decorator.py", line 3, in <module> File "c:\jenkins\workspace\dsg_compose_1.29.2\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module File "compose\metrics\client.py", line 11, in <module> ImportError: cannot import name 'NpipeHTTPAdapter' from 'docker.transport' (C:\Users\KMBL20~1\AppData\Local\Temp\_MEI306562\docker\transport\__init__.pyc) [32892] Failed to execute script docker-compose

I have followed example from https://docs.docker.com/compose/gettingstarted/

I do not have admin access on machine



Sources

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

Source: Stack Overflow

Solution Source