10

I found the same python package in two different directories on my MacBook. One is in /anaconda3/pkgs/ and the other is in /anaconda3/lib/python3.7/site-packages. I wonder what the folder /anaconda3/pkgs does and can I delete the duplicate packages in there safely?

Yingxuan Guo
  • 101
  • 1
  • 4
  • Does this answer your question? [Is it safe to manually delete all files in pkgs folder in anaconda python?](https://stackoverflow.com/questions/56266229/is-it-safe-to-manually-delete-all-files-in-pkgs-folder-in-anaconda-python) – user343233 Sep 18 '22 at 05:41

2 Answers2

25

The pkgs directory is conda's package cache. I would strongly recommend not to delete packages there manually. Doing so can break environments that use one of these packages.

Instead you can use conda clean -p and let conda decide which of the packages are safe to delete.

cel
  • 30,017
  • 18
  • 97
  • 117
-1

Most of the packages that you import in your jupyter notebooks are picked from site-packages.