Resolve Python Inconsistent Tabs and Spaces Error with autopep8 in Terminal on Mac - DevPops-Inc/python GitHub Wiki

• The following resolution is for you receipt an inconsistent use of tabs and spaces error when running a Python script. Close your Python script if you have it open in a text editor or IDE.
image

• Type autopep8 -I < Python script >.py and press “return” key to format the Python script to PEP 8 style guide.
image

• Run the Python script again and it shouldn’t throw the inconsistent tabs and spaces error this time around.
image