[Solved] ImportError: cannot import name _thread on MAC OS

You can solve the import name _thread error MAC OS by following the steps given below.

  1. Install six using pip

     sudo pip2 install six -U
    
  2. Remove the old packages using the following command.

     rm -rf /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.*
    

This will fix the error.