pyenv: no such command `shell'

Created on 17 Sep 2016  路  3Comments  路  Source: pyenv/pyenv

位  ~  pyenv --version
pyenv 1.0.0-47-g5be82cb
位  ~  pyenv shell
pyenv: no such command `shell'
位  ~  eval "$(pyenv init -)"
位  ~  pyenv shell 3.5.0
位  ~  # win

I know you mention in the setup, that the necessary pyenv init - step however, perhaps the error message of no such command ... could be improved to say did you forget to run 'init'? I'd submit a PR if you think it's a good idea.

Most helpful comment

What I wanted to address with this issue is that the we should create a better error message for people that forget to eval "$(pyenv init -)". It's a little strange to have a missing command on a CLI tool just because of that. No?

All 3 comments

It means that your shell isn't initialized with eval "$(pyenv init -)". Please review your shell configurations again.

https://github.com/yyuu/pyenv#basic-github-checkout

What I wanted to address with this issue is that the we should create a better error message for people that forget to eval "$(pyenv init -)". It's a little strange to have a missing command on a CLI tool just because of that. No?

I agree it'd be helpful for pyenv shell to provide some advice on what to do in order to enable the command to work correctly.

Was this page helpful?
0 / 5 - 0 ratings