4 ms·
> Python programmers tend to spin up new processes, rather than using something they consider ambiguous, such as threads. Great generalization with no mention
by kodachi 7y ago
> Python programmers tend to spin up new processes, rather than using something they consider ambiguous, such as threads.
Great generalization with no mention of asyncio?
> Myself and a friend just spent an hour trying to get a short Python script running on an EC2 instance. We got stuck dealing with this error: ModuleNotFoundError
Outdated dependencies, dealing with your distro's package manager, and specially understanding your package manager is vital, isn't it? But I guess it's easy to dismiss an ecosystem without fully understanding the problem.
> the dependency management in the Python community is so badly broken
You can choose to use pip as the package manager for system libraries.
python -m ensure pip # you won't use your distro's pip version
pip install --user <your-package>
For apps, a virtualenv is sufficient?
I see no mention about C extensions, which is one pain point for packages. If the package doesn't have a pre compiled version[1], you might see a big red blob of text directly from the compiler when trying to link dependencies . This kinda sucks for a newbie but I guess a quick google search will tell you to do apt install python3-dev or something if you're using some debian based system like the author seems to be using.
[1] This pycon talk is a nice summary of the state of wheels and C extensions.