Created
December 30, 2023 03:12
-
-
Save ZhanZiyuan/b0957caa46ddda62e445f0b278995a4a to your computer and use it in GitHub Desktop.
The shell script to upgrade conda packages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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