error: could not create '/usr/local/lib/python2.7/dist-packages/virtualenv_support': Permission denied

前端 未结 9 882
情歌与酒
情歌与酒 2020-12-13 05:35

I am using ubuntu 12.04 and I am trying to pip install virtualenv but suddenly I got this error.

samuel@sampc:~$ pip install virtualenv
Downloading/unpacking         


        
相关标签:
9条回答
  • 2020-12-13 06:34

    In the case of permission denied error, you just need to go with this command.

    sudo pip install virtualenv
    

    sudo before the command will throw away the current user permissions error.

    Note: For security risks, You should read piotr comment.

    0 讨论(0)
  • 2020-12-13 06:35

    you have to change permission on the mentioned path.

    0 讨论(0)
  • 2020-12-13 06:37

    It's because the virtual environment viarable has not been installed.

    Try this:

    sudo pip install virtualenv
    virtualenv --python python3 env
    source env/bin/activate
    pip install <Package>
    

    or

    sudo pip3 install virtualenv
    virtualenv --python python3 env
    source env/bin/activate
    pip3 install <Package>
    
    0 讨论(0)
提交回复
热议问题