Broken pyvenv in Ubuntu

Since version 3.3 Python has his own virtual environment build-in. This is extremely useful especially if you like to install development or other specific versions of python libraries without messing with Ubuntu's repository python libs.

Sadly it is broken in Ubuntu 14.04 and 14.10. If you try:

sr4l@LARS-Laptop:~$ pyvenv-3.4 myvenv
Error: Command '['/home/sr4l/myvenv/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

You can only use it without pip and later install pip manually. (Bug report)

With Ubuntu 14.04s Python 3.4 and the newest version of setuptools and pip:

# create python venv in folder myvenv without pip
pyvenv-3.4 --without-pip myvenv
# enter the venv
source ./myvenv/bin/activate
# download, extract and install (in venv) setuptools
tar -vzxf setuptools-7.0.tar.gz
cd setuptools-7.0
python install
cd ..
# download, extract and install (in venv) pip
tar -vzxf pip-1.5.6.tar.gz
cd pip-1.5.6
python install
cd ..
# leave the python venv