WSL icon indicating copy to clipboard operation
WSL copied to clipboard

pyenv not working?

Open mickeyinfoshan opened this issue 10 years ago • 8 comments

Has anyone tried pyenv yet? I set up my pyenv by the installer. These lines were added to .profile:

export PATH="/root/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

, then I could see pyenv is in my path(echo $PATH). I switched to 2.7.11 after I installed it by the command pyenv shell 2.7.11, but the version of my python was still 2.7.6. Did I miss something?

mickeyinfoshan avatar Apr 28 '16 13:04 mickeyinfoshan

Solved

mickeyinfoshan avatar Apr 28 '16 14:04 mickeyinfoshan

Out of curiosity was this a config issue on your end?

benhillis avatar Apr 28 '16 15:04 benhillis

Hmmm.. nope.. I restarted the command line window and the correct version of python was used. I don' t know why using exit then bash does not work as same as restarting the command line window. :(

mickeyinfoshan avatar Apr 29 '16 09:04 mickeyinfoshan

My pyenv install command fails without providing a reason. Did this happen to anyone?

offero avatar Dec 30 '18 18:12 offero

@offero pyenv is working as expected (from what I can tell) for me.

ltomes avatar Feb 18 '19 21:02 ltomes

I just tried again after updating to the latest pyenv and I successfully installed python 3.6.8. There is still minimal output though during the install process. I would like to see some of the build progress as it goes.

offero avatar Feb 19 '19 15:02 offero

@offero

Have you tried verbose mode?

pyenv install 2.7.15 -v

Do you need more output than what is provided with that?

ltomes avatar Feb 20 '19 16:02 ltomes

Hi, I use

  • windows 10
  • pyenv 2.1.0
  • ubuntu 20.04 (on wsl) After i activate env and access python, it says i dont have python on machine. Any idea why this happen? Thanks

rzsgrt avatar Oct 26 '21 15:10 rzsgrt