[Python Dependency Pitfalls] A total mess?

Hey there,

Recently I watched a Pythonista ask for advice on setting up a Python project on his work machine.

This new developer had some prior experience with NodeJS and had just started to get his feet wet with Python.

But OH BOY was he already frustrated:

"Why is Python dependency management so sh*t?"

He was trying to install someone else's Python application and to get it to run on his work machine.

The app had some external dependencies it needed to work properly—things like a third-party networking library and a database interface.

But the way the original author "documented" these dependencies was utterly lacking:

There was only a small "README" file with a list of packages the project needs to work.

That's where the trouble started—

This list was a) incomplete and b) lacked any versioning information whatsoever.

So our poor Pythonista is trying hard to make this application work.

But every time he installs another package dependency and then tries to launch the app he gets slammed in the face with this:

"ImportError: No module named X"

He then spends 15 minutes googling for a solution, finally hunts down and installs the missing package, runs the app again and:

"ImportError: No module named Y"

Yuck!

(Rinse and repeat.)

He's spinning his wheels, and the lack of progress is starting to get to him.

After all, what he loves about programming is "programming"—and NOT wasting hours on trial and error just getting ready for some real development work.

So the guy becomes (understandably) more and more irritated.

Finally, he vents his frustration by putting the blame on Python:

"In NodeJS it's fairly basic to have all dependencies listed in package.json and everything gets installed automatically with a simple command…"

"Why isn't there such a thing for Python? Python packaging is A TOTAL MESS."

And who would disagree with him after going through the same experience?

Modern dependency management and dealing with third-party packages in Python is complex.

And it's easy to get stuck or to "shoot yourself in the foot" if you don't feel confident in the central workflows and tools.

Over the next 5 days, I'll show you some of the main pitfalls with dependency management in Python—and how to avoid them.

When you steer clear of these potholes, you'll find that you can make progress more easily…

And you'll pull ahead of your peers who are left wondering why their productivity continues to plateau.

We'll kick off the first lesson tomorrow.

— Dan Bader

P.S. Ironically, pitfall #1 is something that recently shook the NodeJS community to its core.

It was a "clustermug" so bad that even some newspapers reported about it. But unfortunately Python isn't immune against this problem either…

You'll hear the details in my next email.

Older messages

[PythonistaCafe] What makes PythonistaCafe different

Wednesday, August 25, 2021

Hey there, Mastering Python is *not* just about getting the books and courses to study—to be successful you also need a way to stay motivated and to grow your abilities in the long run. Many

[Sublime + Python Setup] How to become a happier & more productive Python dev

Wednesday, August 25, 2021

Hey there, I really struggled with setting up an effective development environment as a new Python developer. It was difficult to build the right habits and to find a set of tools I enjoyed to use.

[PythonistaCafe] Q&A

Tuesday, August 24, 2021

Hey there, At this point you should have a pretty good idea of what PythonistaCafe is about and what makes it special. In this email I want to answer some common questions that I get asked about the

[PythonistaCafe] What's in PythonistaCafe for you?

Monday, August 23, 2021

Hey there, A couple of years ago I'd become quite interested in martial arts. Hours upon hours of watching "The Karate Kid" growing up must've taken their toll on me... And so, I

[PythonistaCafe] Why PythonistaCafe exists

Sunday, August 22, 2021

Hey there, In one of my last emails I talked about how some online communities in the tech space devolve over time and turn into cesspools of negativity. This relates directly to how and why I started

You Might Also Like

JSK Daily for Mar 6, 2025

Thursday, March 6, 2025

JSK Daily for Mar 6, 2025 View this email in your browser A community curated daily e-mail of JavaScript news Build a Dynamic Watchlist for Your Web App with Angular & GraphQL (Part 6) In this

Charted | Disposable Income Growth of G7 Countries (2007-2024) 📈📉

Thursday, March 6, 2025

Among G7 countries, the US and Canada saw the largest increases in household disposable income since 2007. View Online | Subscribe | Download Our App Invest in your growth at Exchange 2025. FEATURED

Daily Coding Problem: Problem #1710 [Medium]

Thursday, March 6, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This question was asked by Snapchat. Given the head to a singly linked list, where each node also has a “random”

'The most rapid change in human communication ever'

Thursday, March 6, 2025

how I'm using OpenAI to replace PhDs ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

First .NET 10 Preview, .NET Aspire 9.1, C# Dev Kit Previews .NET Aspire Orchestration, More

Thursday, March 6, 2025

Home | News | How To | Webcasts | Whitepapers | Advertise .NET Insight March 6, 2025 THIS ISSUE SPONSORED BY: ■ VSLive! 4-Day Seminar: Hands-on with Blazor Microsoft Ships First .NET 10 Preview

March 6th 2025

Thursday, March 6, 2025

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 6th March 2025 Hi everyone, It's the first issue of March. I

The Hidden Cost of Over-Engineering (and How to Stop Yourself)

Thursday, March 6, 2025

Top Tech Content sent at Noon! Augment Code: Developer AI for real eng work. Start for free Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, March 6,

JSK Weekly - 6th March, 2025

Thursday, March 6, 2025

The new Angular TextArea component by Syncfusion is a robust and flexible user interface element designed to enhance multiline text input. It offers a wide range of features and customization options,

wpmail.me issue#708

Thursday, March 6, 2025

wpMail.me wpmail.me issue#708 - The weekly WordPress newsletter. No spam, no nonsense. - March 6, 2025 Is this email not displaying correctly? View it in your browser. News & Articles The Top

This E-ZPass scam is everywhere ⚠️

Thursday, March 6, 2025

New Google Search; Don't use your CC online; Revert Apple Mail -- ZDNET ZDNET Tech Today - US March 6, 2025 e-zpass Did you get an E-ZPass text demanding payment? Don't click - it's a scam