04 under WSL.I have binary of pyenv in my PATH even with sudo's PATH, but i cannot run it with sudo for some reason.
test@pc:~$ which pyenv/home/test/.pyenv/bin/pyenvtest@pc:~$ sudo which pyenvtest@pc:~$ sudo echo $PATH | perl -p -e 's/:/\n/g' | grep pyenv/home/test/.pyenv/plugins/pyenv-virtualenv/shims/home/test/.pyenv/shims/home/test/.pyenv/binI tried to
sudo -i sudo -Ewith pyenv and it doesnt works. Without sudo it works fine but i cannot install python because of permissions.What im doing wrong?