Comment 107 for bug 1290847

Revision history for this message
garyo (garyo) wrote :

I'm sorry to post to this ancient bug, but I just did a fresh install of Ubuntu 18.04, and I just want to create a virtual env with python 3.7, including pip (or some way to install modules). Doing this does not work:

% sudo apt install python3.7 python3.7-venv
% python3.7 -m venv py37-venv

It gives the error "The virtual environment was not created successfully because ensurepip is not available".

Doing it with --without-pip works, but then there is no way to install modules in the virtualenv. (python -mpip in the virtualenv correctly says "No module named pip").

So what is the recommended way to install python 3.7 on Ubuntu 18.04 and create a "normal" virtual env?