This is what I was doing to create a venv in Python 3.4 on Ubuntu 14.04.3 LTS until last week:

» pyvenv-3.4 --without-pip venv

I was doing that because of this. But since yesterday:

» pyvenv-3.4 --without-pip venv
The program 'pyvenv-3.4' is currently not installed. You can install it by typing:
sudo apt-get install python3.4

python3.4 is definitely installed:

» python3.4 --version
Python 3.4.3

I have probably done an apt-upgrade recently, but ... why has pyvenv-3.4 disappeared?

  • 1
    Edit your question and add the output of dpkg -L python3.4 | grep pyvenv-3.4 and apt-cache policy python3.4 – A.B. Oct 7 '15 at 14:44
  • Something strange happened to python3.4 in the last update cycle. It now appears in Synaptic Package Manager under "installed - local or obsolete" along with all its dependencies. In fact, I think this is worth its own question. – Organic Marble Oct 7 '15 at 15:46

venv is a built-in module in Python 3. You can always call it via the -m <module> call stack. So for your example:

python3 -m venv --without-pip venv

As for where it's gone, 3.4.0 (in trusty-updates and trusty-security) ships the script. However 3.4.3 in trusty-proposed does not. This may explain why yours has gone missing.

You can still use it with python3 -m venv ... so it's not that important.


If you're wondering how you ended up on 3.4.3, it was SRUd into trusty-updates back in September and pulled very recently after it was found to break several things. This should be fixed and re-released in short order. Follow that bug report for updates.

  • The file should be in the package python3.4, see here packages.ubuntu.com/… – A.B. Oct 7 '15 at 14:41
  • A dpkg -L python3.4 | grep venv on my system doesn't show it in the file listing. That suggests that it's been removed in later versions. I'm on 3.4.3-1ubuntu1 from trusty-proposed. – Oli Oct 7 '15 at 14:44

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.