[Python] Moving .pyenv folder to another partition, symlinking

Discussão em 'Python' iniciado por Stack, Março 16, 2025.

  1. Stack

    Stack Membro Participativo

    This question is related to programming environment setup for python.

    I have run out of space on my home folder on Ubuntu. Python shims are stored in their default location ~/.pyenv and taking up a lot of space. To create space, I want to move the whole of .pyenv folder to another partition.

    In my understanding, this should be as simple as cut-pasting the `.pyenv' folder to its desired location and creating a soft link at its original location, pointing to this new location. Something like:

    ln -s ~/drive2/.pyenv ~/.pyenv

    ( Where the other disc is mounted at ~/drive2/ )

    However, the solutions I see online are much more 'involved'. Here's one example

    Am I missing something? Only possible issue I can think of is having too many levels of symlink .

    Continue reading...

Compartilhe esta Página