Skip to content

Instantly share code, notes, and snippets.

@vindarel
Last active June 30, 2022 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vindarel/20565c8c012bf0632a7ac7c1d3e1304f to your computer and use it in GitHub Desktop.
Save vindarel/20565c8c012bf0632a7ac7c1d3e1304f to your computer and use it in GitHub Desktop.
Python and pip fails

pip can break anytime, even dependencies of your dependencies can break if they were not pinned correctly (by their maintainers, not you).

Upgraded to pip 20? Too bad!

cannot import name SourceDistribution

You are now unable to install anythnig, nor to downgrade or upgrade pip itself (to 20.0.1 or 19).

https://stackoverflow.com/questions/59842600/importerror-cannot-import-name-sourcedistribution-from-pip-internal-distrib

Failing during a deployment (again): Could not find suitable distribution for Requirement.parse("termcolor==1.1.0")

googleapis/google-cloud-python#3757

pip fails if a dependency of your dependencies didn't pin its dependencies well enough

error: 'egg_base' must be a directory name

this problem seem to be caused by having a from future import unicode_literals in setup.py

LOL. Fixed by better pinning dependencies (of dependencies).

Comparison to Quicklisp

Quicklisp: no issues so far (5 years+) :D

And I build binaries of my software, so deployments don't even need to download stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment