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

前端 未结 9 901
情歌与酒
情歌与酒 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:26

    First, sudo pip install 'package-name' means nothing it will return

    sudo: pip: command not found
    

    You get the Permission denied, you shouldn't use pip install as root anyway. You can just install the packages into your own user like mentionned above with

    pip install 'package-name' --user
    

    and it will work as you intend. If you need it in any other user just run the same command and you'll be good to go.

提交回复
热议问题