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

后端 未结 6 968
时光说笑
时光说笑 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:47

    I had a problem installing virtualenvwrapper after successfully installing virtualenv.

    My terminal complained after I did this:

    pip install virtualenvwrapper
    

    So, I unsuccessfully tried this (NOT RECOMMENDED):

    sudo pip install virtualenvwrapper
    

    Then, I successfully installed it with this:

    pip install --user virtualenvwrapper
    

提交回复
热议问题