Python 3.4 is broken in the new version of Ubuntu 14.04! (Which is a shame and should now happen! 😛 )

When you try to create a new virtual environment with “pyvenv venv” you get the following message:

pyvenv-3.4 test
Error: Command '['/home/raony/development/test_py3/test/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

I think this is because ensurepip is not included with python in the new version of Ubuntu 14.04 trusty.

You can read the discussion about this bug in here:

So for me the solution was to install two ssl-packages and python3.4 from source with the following commands:

sudo apt-get install libssl-dev openssl
tar -zxvf Python-3.4.0.tgz
cd Python-3.4.0
sudo make install

And them you can finally start creating your virtual environments again with the new venv module that comes with python 3.4 ( ! 🙂

pyvenv venv
source venv/bin/activate
pip install -r requirements.txt

And now I can finally start migrating my django projects from python 2.7 to python 3.4! Uhuuu!

Categories: Sem categoria

Related Posts

Sem categoria

raid 0 vs raid 10 RAID level Sequential Reads (MB/s) Sequential Writes (MB/s) Random Reads (IOPS) Random Writes (IOPS) RAID 0 Best Best Best Best RAID 10 Better Better Best Better Read more…

Sem categoria

One Liners Related PostsZip each file separatelyraid 0 vs raid 10uau they release house of cards full season!  Can't wait to watch love!Report LGC

Sem categoria

Fixing sublime text 3 folder association in ubuntu 14.04

~/.local/share/applications/mimeapps.list change sublime to nautilus Related PostsBuild 3068 Release Date: 3 February 2015Mendeley sharing papers across computersMudando atalhos no Sublime Text 2Fixing Python 3.4 in Ubuntu Trusty 14.04Minitube on Ubuntu 12.04