My C: drive is always too full, some useful stuff but 80% execrable, unremovable Microsoft bloatware. I always install new stuff on another drive.
I've tried this installation page for installing pyenv-win.
Even if I set the pyenv installation directory itself somewhere off C: drive, I find that pyenv install [version] installs that version under C:\Users... Python version 3.10.5 (for example) takes up 200 MB.
I went pyenv install --help but could see no options for installing Python versions somewhere else. Is it possible?
OK, you don't specify what instructions, exactly, you followed on the installation page, nor how you "set the pyenv installation directory itself somewhere off C: drive," however, it is possible to fix things to do what you want.
~\.pyenv. I assume other installation methods will end up with everything in the same place. (Note that the PowerShell installation script is hardcoded to use${env:USERPROFILE}\.pyenv.).pyenvfolder from your user profile folder to wherever you want it to exist (Explorer seems the easiest way to do this, but whatever works for you.)PYENV,PYENV_ROOT,PYENV_HOME) to match the new location. You can use the Windows Settings dialog to do so, or you can do it from a PowerShell command prompt, like so (if, for example, you were usingD:\pythons\.pyenv\):miker):Replace
C:\Users\miker\.pyenv\pyenv-win\binwith
D:\pythons\.pyenv\pyenv-win\bin.Replace
C:\Users\miker\.pyenv\pyenv-win\shimswith
D:\pythons\.pyenv\pyenv-win\shims.Now you should be able to run pyenv to your heart's content. Enjoy!