pip: inconsistent permissions issues

前端 未结 2 1381
野趣味
野趣味 2021-02-13 01:45

When installing a package via sudo pip-python (CentOS 6 package: python-pip-0.8-1.el6.noarch), I sometimes get permission issues with the installed pac

2条回答
  •  后悔当初
    2021-02-13 02:25

    If executing pip with sudo, you may want sudo's -H flag

    -H, --set-home set HOME variable to target user's home dir

    e.g

    sudo -H pip install virtualenv

提交回复
热议问题