How to install virtualenv without using sudo?

后端 未结 10 526
暖寄归人
暖寄归人 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:06

    This worked for me:

    pip install --target=$HOME/virtualenv/ virtualenv
    cd somewhere/
    python $HOME/virtualenv/virtualenv.py env
    . env/bin/activate
    

    Now I can pip install whatever I want (except for everything that needs to compile stuff with gcc and has missing dependencies such as the python development libraries and Python.h).

提交回复
热议问题