How to install pip for python3.4 when have python3.2 and python3.4

You should compile python 3.4 and use venv for python3 environment:

  1. Check if you have installed required dependencies:
    sudo apt-get install build-essential
    sudo apt-get install libc6-dev libreadline-dev libz-dev libncursesw5-dev libssl-dev libgdbm-dev libsqlite3-dev libbz2-dev liblzma-dev tk-dev
  2. Download and compile Python 3.4.3. You should not sudo make install it because we don’t need it systemwide:
    tar -xvf Python-3.4.3.tgz
    cd Python-3.4.3
    ./configure && make

    This may take a while on pi.

  3. While you still in current folder, create python environment:
    mkdir -p ~/.virtualenvs
    ./python -m venv ~/.virtualenvs/py34
  4. launch your virtual environment:
    source ~/.virtualenvs/py34/bin/activate

Now you have Python 3.4 and pip inside of it. Try:

    pip install bpython

To exit virtual environment use: