Is it acceptable and safe to run pip install under sudo?

后端 未结 6 966
时光说笑
时光说笑 2020-11-22 14:29

I\'ve started to use my Mac to install Python packages in the same way I do with my Windows PC at work; however on my Mac I\'ve come across frequent permission denied

6条回答
  •  情深已故
    2020-11-22 14:58

    Is it acceptable & safe to run pip install under sudo?

    It's not safe and it's being frowned upon – see What are the risks of running 'sudo pip'? To install Python package in your home directory you don't need root privileges. See description of --user option to pip.

提交回复
热议问题