Using Anaconda with Python and Running Out of Disk Space? Here’s a Tip to Quickly Free Up a Lot of Space

With all of the Python code I have been writing lately and using Anaconda to manage the installation of packages, I have been watching the free disk space on my machine disappear at an alarming rate. Python has some huge packages and this adds up quickly – especially if you are installing specific versions of Python in your Anaconda environments.

Script

To clean up various packages, tarballs, etc. that get left behind after you install something, just use this command:

#Cleanup downloaded libraries (remove tarballs and packages):
conda clean -tp

Here is the full list of options for the clean command.

Result

I was able to free up several gigs space with this one command – though I am still running out of space.

Disk Space

Disk Space

10/29/17 – Just needed to do this again – freed up almost half a gig of space…

Freed Up Space

Freed Up Space

Follow these links for more posts on Python and Anaconda.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *