Actualicé de ubuntu 14.04 a ubuntu 16.04 hace unos días. Cuando trato de crear un entorno virtual usando
pyvenv .venv
o
python3 -m venv .venv
Hay un error:
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/usr/bin/python3.5', '-Im', 'ensurepip', '--upgrade', '--default-pip']
Intenté ejecutar ambos
sudo apt-get install python3-venv
y
sudo apt-get install python3.5-venv
pero no resolvió mi problema.