this post was submitted on 23 Aug 2024
0 points (50.0% liked)

Programming

0 readers
1 users here now

A magazine created for the discussion of computer programming-related topics.

Rules

Please keep submissions on topic and of high quality. No image posts, no memes, no politics. Keep the magazine focused on programming topics not general computing topics. Direct links to app demos (unrelated to programming) will be removed. No surveys.

founded 1 year ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 2 months ago (1 children)

@[email protected] This is good criticism and you've found the solutions (force spaces in editors and virtualenv).

Along with virtualenv, pipx is really good at managing things like platformio, or miniterm.py, where you only want the packages for the executable. You should also get a good bash prompt that recognizes when you are in a virtualenv. I use bash-it.

[โ€“] [email protected] 1 points 2 months ago

@[email protected] Yeah, I think I just need to fix my editor (I'm using Pulsar) and get used to the virtualenv stuff. I didn't seem to need to worry about things 5 years ago, the last time I dove into Python, but hey, things change!