Ubuntu12.04默认的Python版本是Python3.2, 如果要安装3.4, 则要添加ppa
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.4
然后用pip安装virtualenv
sudo pip install https://github.com/pypa/virtualenv/tarball/develop
最新版本的virtualenv-1.12支持python2.7到python3.2