pythonubuntuzshpythonbrew

Pythonbrew install ZSH on Ubuntu


Can anyone shed any light on how to have pythonbrew / pythonz install when my shell is ZSH. I am on ubuntu 12.04.

I have followed the standard install of curl and then adding the line to ~/.bashrc but it will return an unknown command in a new zsh terminal.

[[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc

PythonBrew Readme


Solution

  • The bashrc file does not work with zsh unfortunately.

    Take python2.5 as an example, this seems to work:

    sudo ~/.pythonbrew/bin/pythonbrew install 2.5
    

    Then to invoke python2.5:

    ~/.pythonbrew/pythons/Python-2.5/bin/python
    

    For convenience set:

    $PATH=$HOME/.pythonbrew/pythons/Python-2.5/bin:$PATH