pyenv / pyenv-installer

This tool is used to install `pyenv` and friends.
MIT License
3.96k stars 428 forks source link

-bash: pyenv: command not found #96

Closed nickborti closed 4 years ago

nickborti commented 4 years ago

I followed the instructions for installing. But after restarting my terminal, and trying to see the pyenv version, it's giving me this error.

guy881 commented 4 years ago

This is some kind of problem with your environment. Are you using Linux? Make sure you've got those lines in .bashrc or .bash_profile (check out which one your system is using). You can debug it by loading it manually like source .bash_profile.

export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
sabotagebeats commented 3 years ago

@guy881 that worked, however now when I close my shell I get the error: The terminal process "bash" terminated with exit code: 1. and when I open the shell I get the error

WARNING: `pyenv init -` no longer sets PATH.
Run `pyenv init` to see the necessary changes to make to your configuration.
sabotagebeats commented 3 years ago

https://github.com/pyenv/pyenv/issues/1906