pyvenv-3.4 returned non-zero exit status 1

前端 未结 16 923
我寻月下人不归
我寻月下人不归 2020-12-12 15:35

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

16条回答
  •  时光说笑
    2020-12-12 16:16

    Same problem on Linux Mint 17 (which is basically Ubuntu 14.04). Installing python3.4-venv didn't work, so I created virtualenv without pip and then installed pip manually.

    1. Create virtualenv and activate it

      python3 -m venv --without-pip foo
      source foo/bin/activate
      
    2. Download latest versions of setuptools and pip:

      wget https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.tar.gz#md5=6245d6752e2ef803c365f560f7f2f940
      wget https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz#md5=01026f87978932060cc86c1dc527903e
      
    3. Unpack and install them

      tar xf setuptools-7.0.tar.gz
      tar xf pip-1.5.6.tar.gz
      cd setuptools-7.0
      python setup.py install
      cd ../pip-1.5.6
      python setup.py install
      

提交回复
热议问题