Search code examples
pythonmacoseasy-install

"inconsistent use of tabs and spaces in indentation" from easy_install


I have had a strange error today when I tried to upgrade some of my python apps (aka pip and aws clt) and received the following error:

  File "/usr/bin/easy_install", line 31
    continue
           ^
TabError: inconsistent use of tabs and spaces in indentation

Then I tried running easy_install --version and received the same error. I have all three of my computers (Macbook Pro, iMac, and Mac Pro) running the same commands, only my Macbook Pro has this error (and all of them share the identical python version and apps). I like to know what might be the cause of this error message.

P.S. I have tried to copy the "/usr/bin/easy_install" file from one computer to another and received the same error message.


Solution

  • This is really just my guessing. I have signed up for Apple Developer programer and used a beta test version of OS X. I then turned off the developer mode and returned to the ordinary Yosemite but the funny part is I cannot use easy_install afterward. I think turning off the developer mode is the same as turning off easy_install. I am not entirely sure if that is true but you can give it a try. Either reinstall the OS X, or simply turn the developer mode back on.