Skip to content

Instantly share code, notes, and snippets.

@filipsPL
Last active December 14, 2021 08:06
Show Gist options
  • Save filipsPL/e768ad5fb18558a8ccdc5ece45057f81 to your computer and use it in GitHub Desktop.
Save filipsPL/e768ad5fb18558a8ccdc5ece45057f81 to your computer and use it in GitHub Desktop.
Update all packages installed via pip but in a conda environment
#!/bin/bash
# update all packages installed via pip but in a conda environment
# may be necesarry to run twice to satisfy all requirements
conda list | egrep "pypi$" | tr -s ' ' | cut -d ' ' -f 1 | xargs pip install --upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment