Skip to content

Instantly share code, notes, and snippets.

@orendon
Created January 10, 2018 20:36
Show Gist options
  • Select an option

  • Save orendon/292a2f3abbb7fa85197f62677de7428e to your computer and use it in GitHub Desktop.

Select an option

Save orendon/292a2f3abbb7fa85197f62677de7428e to your computer and use it in GitHub Desktop.
Python: list pip packages size
pip list | xargs pip show | grep -E 'Location|Name' | cut -d ' ' -f 2 | paste -d ' ' - - | awk '{print $2 "/" tolower($1)}' | xargs du -sh 2> /dev/null
@MohammadRaziei
Copy link
Copy Markdown

just use pip-size.
pip-size "pygixml"
pip-size "request"
pip-size "fastapi[standard]"

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