sudo pip install django

前端 未结 1 1291
無奈伤痛
無奈伤痛 2021-02-07 08:51

So this is my first attempt at trying to install Django, and when I ran it, it successfully installed Django-1.7.3 but I received these warnings below. I wasn\'t able to find an

1条回答
  •  不知归路
    2021-02-07 09:40

    These messages are just telling you that after issuing sudo the current user has changed to root and root isn't the owner of those directories or one of the parent directories.

    sudo -H sets the $HOME environment variable to /root and would probably hide these but the way you did it is perfectly fine.

    I'm pretty sure these messages are nothing to be concerned about, but its always good to see that people are reading them and making sure.

    Also, to verify this, you can try:

    $ sudo env | less
    

    and

    $ sudo -H env | less
    

    and pay attention to the $HOME and $USER variables

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