Skip to content

No shell command in Mac OS. #228

Closed
Closed
@allomov

Description

@allomov

Hi.

I've installed pyenv with brew and it really have potential to solve all my problems with python versions on mac. Here is the version of pyenv:

→ pyenv --version
pyenv 20140705

The problem is when I try to use shell command it says there is no such:

→ pyenv shell
pyenv: no such command `shell'

Still I can see shell command in the list of commands.

Thank you,
Alex L.

Activity

yyuu

yyuu commented on Sep 3, 2014

@yyuu
Contributor

Please review your shell configuration and check if there pyenv is configured properly. You will need following configuration to enable pyenv's shell feature.

if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi

For more information about installation instruction, please see README also.

allomov

allomov commented on Sep 26, 2014

@allomov
Author

Cool, thank you for answer. Worked for me.

SSUHan

SSUHan commented on May 24, 2016

@SSUHan

thank you, U save my times

DearX-dlx

DearX-dlx commented on Mar 7, 2017

@DearX-dlx

In shell window input
eval "$(pyenv init -)";
it work for me

DutraBueno

DutraBueno commented on May 1, 2018

@DutraBueno

Thank you

majkelx

majkelx commented on Aug 6, 2018

@majkelx

Thanks, but on macos, after default installation, pyenv init isn't evaluated in non-login shell (or my environment is messed up, but eval "$(pyenv init -)" is on .bash_profile only).

That means that in every non-login shell

pyenv --help

lists shell among other commands, but

$ pyenv shell
pyenv: no such command `shell'

of course this issue explains reasons, but at least message should be different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @yyuu@allomov@SSUHan@majkelx@DearX-dlx

        Issue actions

          No `shell` command in Mac OS. · Issue #228 · pyenv/pyenv