Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

pyenv command not found when running with sudo

$
0
0

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/bin

I tried to

sudo -i sudo -E

with pyenv and it doesnt works. Without sudo it works fine but i cannot install python because of permissions.What im doing wrong?


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>