Where is virtualenvwrapper.sh after pip install?

后端 未结 24 1566
忘了有多久
忘了有多久 2020-12-07 09:20

I\'m trying to setup virtualenvwrapper on OSX, and all the instructions and tutorials I\'ve found tell me to add a source command to .profile, pointing towards virtualenvwra

24条回答
  •  不思量自难忘°
    2020-12-07 10:19

    If you execute pip install virtualenvwrapper without sudo as a normal user pip will run but won't copy the files in the required locations because the lack of permissions.

    mortiz@florida:~# sudo pip3 install virtualenvwrapper
    

    Use sudo and the files will be created under their respective paths:

    root@florida:/usr/local/bin# ls -ltr
    total 8008
    -rwxr-xr-x 1 root staff 8136192 Jun 11 17:45 chromedriver
    -rwxr-xr-x 1 root staff   41697 Sep  5 16:06 virtualenvwrapper.sh
    -rwxr-xr-x 1 root staff    2210 Sep  5 16:06 virtualenvwrapper_lazy.sh
    -rwxr-xr-x 1 root staff     215 Sep  5 16:06 pbr
    -rwxr-xr-x 1 root staff     218 Sep  5 16:06 virtualenv-clone
    -rwxr-xr-x 1 root staff     213 Sep  5 16:06 virtualenv
    root@florida:/usr/local/bin# 
    

    Worked for me on Debian GNU/Linux 9

提交回复
热议问题