Is it safe to delete pyenv Python versions?

~/.pyenv/versions · Check first

What it is

Every Python version installed with pyenv, with its packages.

Can you delete it?

Sometimes, check what is inside first. Versions no project uses can go; virtual environments built on a removed version stop working.

How to clean it safely

  1. Run: pyenv versions
  2. Run: pyenv uninstall <version> for ones you no longer use.

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/".pyenv/versions" 2>/dev/null

Step-by-step guide: Clean up Python environments →

Questions

Is it safe to delete ~/.pyenv/versions?

Sometimes, check what is inside first. Versions no project uses can go; virtual environments built on a removed version stop working.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac