Yes Python is incredibly annoying to use. Their dependency management is a total mess, and it's incredible how brittle packages if there are even minor point changes in versions anywhere in a stack.
The flip side is like you said... You will just have to reimplement everything yourself and then you can never worry about dependencies again! Just hope you didn't introduce some obscure security issue in your hashmap implementation .
Take a look at rust’s Cargo for what a modern package manager should look like. Or deno / Go if you swing that way.
Which old language gets package management right? None of them. None of them get it right.
And sure - conda / venv / CMake / etc help. But last century’s bad design decisions still shine through.