How to install virtualenv without using sudo?

后端 未结 10 540
暖寄归人
暖寄归人 2020-11-30 23:51

I have easy_install and pip.

I had many errors on my Linux Mint 12, I just re-installed it and I want to install everythin

10条回答
  •  醉酒成梦
    2020-12-01 00:03

    http://opensourcehacker.com/2012/09/16/recommended-way-for-sudo-free-installation-of-python-software-with-virtualenv/ suggests the following:

    curl -L -o virtualenv.py https://raw.githubusercontent.com/pypa/virtualenv/master/virtualenv.py
    python virtualenv.py vvv-venv
    . vvv-venv/bin/activate
    pip install vvv
    

    It seems to work well. It lets me install https://github.com/miohtama/vvv with pip.

    If you get:

    Cannot find sdist setuptools-*.tar.gz
    Cannot find sdist pip-*.tar.gz
    

    Try --extra-search-dir after downloading the tarballs at https://github.com/pypa/virtualenv/tree/develop/virtualenv_support

提交回复
热议问题