How to install virtualenv without using sudo?

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

    Basically the idea is to install virtualenv (or any other python package) into ${HOME}/.local. This is the most appropriate location since it is included into python path by default (and not only Python).

    That you do by pip3 install virtualenv --prefix=${HOME}/.local (you may need to expand ${HOME}). Make sure that you have export PATH=${HOME}/.local/bin:${PATH} in your ~/.profile (you may need to source ~/.profile it if just added)

提交回复
热议问题