Skip to content

Instantly share code, notes, and snippets.

@ZhanZiyuan
Created December 30, 2023 03:12
Show Gist options
  • Save ZhanZiyuan/b0957caa46ddda62e445f0b278995a4a to your computer and use it in GitHub Desktop.
Save ZhanZiyuan/b0957caa46ddda62e445f0b278995a4a to your computer and use it in GitHub Desktop.
The shell script to upgrade conda packages.
#!/bin/bash
# activate base environment
conda activate base
# activate learning environment
# conda activate learning
# inspect all conda environments
# you can also do this by using: `conda info -e`
conda env list
# upgrade conda and its dependencies
# update conda
# [conda update and conda upgrade](https://juejin.cn/s/conda%20update%E5%92%8Cupgrade)
conda upgrade conda && conda update conda
# to update all installed packages, you can use the following command:
# conda update --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment