Clean up Anaconda's pkgs

1. Problem

As shown in the figure:

Insert picture description here

2. Solve

2.1 Step1

Use condato clean up:conda clean -p

1. conda clean -pThis command will check which packages are not hardly dependent on other places in the package cache, and delete them.
2. The conda cleancommand is to search all packages under anaconda without entering other environments to repeat operations.

Seeing the results of the inspection almost suffocated: enough 7.55gcache! !

Insert picture description here

Extreme fear deleted things that should not be deleted, and insurance purposes, or to confirm Quguan network conda cleanusage:

Insert picture description here

Two complete reminders are not shown:

  • -p:Remove unused packages from writable package caches. WARNING: This does not check for packages installed using symlinks back to the package cache.
  • -f:Remove all writable package caches. This option is not included with the –all flag. WARNING: This will break environments with packages installed using symlinks back to the package cache.

There is -pno problem to use , just execute it directly.

The situation after the final cleanup:18.5g ——>9.8g

Insert picture description here

2.2 Step2

The cached packages that have just been cleaned up, now continue to clean up the cached compressed package files, the code is as follows:conda clean -t

There check out 2.65gthe archive cache:
Insert picture description here

Just enter yit and execute it directly.

At this point, it's over!

reference:

  1. Anaconda use conda management skills summary
  2. Docs »Conda Commands» conda clean

Guess you like

Origin blog.csdn.net/Robin_Pi/article/details/115004870