sudo pip install VS pip install --user

前端 未结 2 1681
傲寒
傲寒 2020-11-30 08:41

Can\'t remember where I read this, but either somewhere on here or in the comments of a tutorial I was following, a person said:

\'Never never ever use sudo pip ins

2条回答
  •  情歌与酒
    2020-11-30 09:16

    sudo pip install probably means that you want to install a package system-wide. For some packages, such as virtualenvwrapper, that might be useful, but besides that I'd avoid installing system-wide packages and create a virtualenv for each application and pip install to that virtualenv (which can be done without sudo).

提交回复
热议问题