I need to create a virtual environment on ubuntu 14.04 according to the Pyramid installation documentation. The problem occurs when performing step 2 and clause 3 of the Installing Pyramid paragraph on a UNIX System . Error pops up: /home/ubuntu/MyDoc/bin/pip: No such file or directory That's right, pip is not in this folder. But, I do not depart from the documentation.

The documentation for venv describes the tree of folders and files that should be obtained after using the python3 -m venv $VENV . In my case, pysetup3 is not enough, and an error pops up

Ensure that it is not available. On Debian / Ubuntu systems, you need to install the package using the following command. apt-get install python3-venv After installing the python3-venv package, recreate your virtual environment.

Those. python3-venv is missing.

What is done wrong?

  • Added information by mistake - Rado Duoistin
  • venv and virtualenv are different things with a similar goal. Practice virtualenvwrapper to get comfortable. - jfs
  • Thank. But I did not seem to interfere with two "things." It immediately became clear that when working with python3, I need to run venv . - Rado Duoistin
  • look at the label in question. From the fact that you use python3 does not mean that you should use venv. virtualenv not limited only to Python 2. - jfs
  • Yes, unfortunately I can not create a label. A closer label that has already been created is not available. As for Python 3, it was necessary to say python3.4 and higher. - Rado Duoistin

1 answer 1

The answer is here on stackoverflow.com. When installing python-venv, you must enter the index of Ubuntu Python pre-installed on the system. In this case, it is python3.4.

Code

sudo apt-get install python3.4-venv

After this error, which are described in the question does not arise.

  • I unfortunately just wrote sudo apt-get install python3-venv - Rado Duoistin