pyvenv-3.4 returned non-zero exit status 1

前端 未结 16 1042
我寻月下人不归
我寻月下人不归 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:25

    Quite similar to @prismalytics.io but for those of you who don't like running shell scripts from the web. You can, of course, use --no-index --find-links to point to local copies. Any recent pip wheel file will suffice, this just points to the current version on PyPI.

    python3 -m venv --without-pip your_venv
    source your_venv/bin/activate
    curl 'https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl' > pip.whl
    python -m zipfile -e pip.whl $VIRTUAL_ENV/lib/python3*/site-packages
    python -m pip install --force-reinstall --upgrade pip
    

提交回复
热议问题