Fix docker-compose ImportError: cannot import name _thread
05 Nov 2016In this snippet I’ll show you how to Fix docker-compose ImportError: cannot import name _thread
.
I had this error recently after I installed docker-compose with pip.
The problem
Six has been installed incorrectly, or is outdated.
The solution
brew reinstall python
pip install -I six
pip install -I docker-compose</code>
The -I
is shorthand for --ignore-installed
. It tells pip to ignore the packages and install them again in the same folder. This has the result of reinstalling the packages.
And that’s how you fix docker-compose ImportError: cannot import name _thread