Pyenv over TRAMP: Point pyenv to host machine
I'm using pyenv-mode in Spacemacs and editing local files works perfectly fine.
However, when I'm editing a remote file via TRAMP, pyenv-mode-set results in ["sytem", "/bin/bash:", "pyenv:", "command", "not", "found"]

The desired behavior would be that despite editing a file remotely, the user has the option to keep pyenv locally (where e.g. my python lsp is set up). Any ideas? Thanks in advance!
I work around this by first opening a local python file and calling pyenv-mode-set and then opening the remote file over tramp. It would be really helpful if we could set a default environment in the config, so that I can use the local pyenv for completions, formatting etc.