What is the -H flag for pip?

前端 未结 1 1475
离开以前
离开以前 2021-02-03 18:26

When using sudo pip install ... with pip version 6.0.4 or greater, I get some warnings like:

The directory \'/home/drevicko/.cache/pip/log\'

1条回答
  •  无人共我
    2021-02-03 18:56

    The -H flag is actually for the sudo command and not for pip. As taken from the docs

    The -H (HOME) option requests that the security policy set the HOME environment variable to the home directory of the target user (root by default) as specified by the password database. Depending on the policy, this may be the default behavior.

    A look at this question might provide more insight into what could be happening.

    0 讨论(0)
提交回复
热议问题