[Python] 'cygpath: not found' & 'exec: cmd: not found' for Pyenv on Windows WSL 2

Discussão em 'Python' iniciado por Stack, Novembro 23, 2024.

  1. Stack

    Stack Membro Participativo

    I have been trying to get Tensorflow to recognize my GPU within WSL 2. However, I believe that is largely irrelevant for the problem I am having right now.

    Whenever I try to run the pyenv command within WSL I get the following error:

    /mnt/c/Users/USER/.pyenv/pyenv-win/bin/pyenv: 3: cygpath: not found
    /mnt/c/Users/USER/.pyenv/pyenv-win/bin/pyenv: 3: exec: cmd: not found


    Pyenv does work outside of the WSL environment.

    Here are the details of my environment:

    pyenv - 3.1.1
    WSL Kernel - 5.15.133.1-1
    WSL version - 2.0.9.0
    Windows 10
    Windows Version - 10.0.19045.3693


    What can I do to make pyenv work inside WSL?

    Continue reading...

Compartilhe esta Página