Last active
February 12, 2019 22:15
-
-
Save delip/66f40d8052c696a5ed6957978ab48fd0 to your computer and use it in GitHub Desktop.
This file contains 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 | |
conda env list | grep -v "^#" | grep -v "^$" | cut -f1 -d' ' | sort > all.envs | |
for env in `cat all.envs | grep -v "base" | grep -v "pytorch_p36"` | |
do | |
echo $env | |
conda remove --name $env --all --yes | |
done | |
rm *.envs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment