Two things are driving me mad about Python…

  1. Repeatedly getting “TabError: inconsistent use of tabs and spaces in indentation” which may have something to do with my editor…

  2. Consistently having issues installing modules. It seems to fail most of the time. I don’t know if it’s a homebrew thing or something else stupid I am doing.

#python #programming

  • Barbarian
    link
    fedilink
    arrow-up
    1
    ·
    1 month ago
    1. Are you copying and pasting code chunks from online sources? If you’re using spaces and you copy in code with tabs or vice versa, easy problem to run into.

    2. Are you using pip? If not, start using it. It’s by far the easiest way to go about it. Assuming you’re on Mac from the homebrew mention, here’s a guide.