Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pyvenv-3.4 returned non-zero exit status 1

I'm in Kubuntu 14.04 , I want to create a virtualenv with python3.4. I did with python2.7 before in other folder. But when I try:

pyvenv-3.4 venv 

I've got:

Error: Command '['/home/fmr/projects/ave/venv/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

like image 646
kahonmlg Avatar asked Jun 09 '14 15:06

kahonmlg


People also ask

What is Pyvenv?

pyvenv (not to be confused with pyenv in the previous section) is a script shipped with Python 3.3 to 3.7. It was removed from Python 3.8 as it had problems (not to mention the confusing name). Running python3 -m venv has exactly the same effect as pyvenv .

How do I know if venv is active?

Note: Before installing a package, look for the name of your virtual environment within parentheses just before your command prompt. In the example above, the name of the environment is venv . If the name shows up, then you know that your virtual environment is active, and you can install your external dependencies.


1 Answers

You are missing the venv lib for python 3.4, just run:

$ apt-get install python3.4-dev python3.4-venv 

And then create your virtualenv

python3.4 -m venv myVenv 
like image 125
Gregory Avatar answered Oct 20 '22 15:10

Gregory