4

venv is a standard python3 module, thus I assume it should be shipped with python3 by default.
That is not quite true on Ubuntu 16.04: to use venv you also need to install python3-venv.
Why on Ubuntu venv is split into venv and python3-venv?

Ayrat
  • 309
  • 1
    I can run venv without installing python3-venv in 16.04 – Anwar Jun 11 '17 at 07:54
  • I am able to run python3 -m venv --help without installing python3-venv, and so did a few other users in the chatroom. Are you sure you need to install python3-venv? – edwinksl Jun 11 '17 at 07:54
  • 1
    @edwinksl @Anwar I guess that is because you have pip3 installed (?). I had a fresh ubuntu without pip/pip3 and it complained just like here: https://askubuntu.com/q/760177/41363. I tried option --without-pip, it created the environment but could not activate it (as far as i remember). Then I installed package python3-env, and it works now (though I still don't have pip system-wide installed). – Ayrat Jun 11 '17 at 16:39
  • 5

0 Answers0