Skip to content

installed python doesn't switch active python version nor persist across zsh shell sessions for mac(mountain lion) pyenv homebrew zsh #89

@mazz

Description

@mazz

after running

brew update
brew install pyenv

switching python with pyenv has no effect:

[michael@varga (Sun Dec 15 19:18:55) ~]% pyenv install 3.3.2
Downloading Python-3.3.2.tgz...
-> http://yyuu.github.io/pythons/0a2ea57f6184baf45b150aee53c0c8da
Installing Python-3.3.2...
Installed Python-3.3.2 to /Users/michael/.pyenv/versions/3.3.2

Downloading setuptools-2.0.tar.gz...
-> https://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz
Installing setuptools-2.0...
Installed setuptools-2.0 to /Users/michael/.pyenv/versions/3.3.2

Downloading pip-1.4.1.tar.gz...
-> https://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz
Installing pip-1.4.1...
Installed pip-1.4.1 to /Users/michael/.pyenv/versions/3.3.2

[michael@varga (Sun Dec 15 19:25:57) ~]% pyenv versions
* system (set by /Users/michael/.pyenv/version)
  3.3.2
[michael@varga (Sun Dec 15 19:26:09) ~]% pyenv global 3.3.2
[michael@varga (Sun Dec 15 19:26:41) ~]% pyenv versions    
  system
* 3.3.2 (set by /Users/michael/.pyenv/version)
[michael@varga (Sun Dec 15 19:26:43) ~]% python --version
Python 2.7.2

opening a new terminal shell:

/usr/local/Cellar/pyenv/20131116/libexec/../completions/pyenv.bash:16: command not found: complete

I've also changed .zshenv to

export PYENV_ROOT="$HOME/.pyenv"
eval "$(pyenv init -)"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions