Eu atualizei do ubuntu 14.04 para o ubuntu 16.04 alguns dias atrás. Quando tento criar um ambiente virtual usando
pyvenv .venv
ou
python3 -m venv .venv
Há um erro:
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']
Eu tentei correr ambos
sudo apt-get install python3-venv
e
sudo apt-get install python3.5-venv
mas não resolveu meu problema.