Where is virtualenvwrapper.sh after pip install?

后端 未结 24 1452
忘了有多久
忘了有多久 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条回答
  • I just reinstalled it with pip.

    sudo pip uninstall virtualenvwrapper
    sudo pip install virtualenvwrapper
    

    And this time it put it in /usr/local/bin.

    0 讨论(0)
  • 2020-12-07 10:14
    /usr/local/bin/virtualenvwrapper.sh
    
    0 讨论(0)
  • 2020-12-07 10:16

    Installed it using pip on Ubuntu 15.10 using a normal user, it was put in ~/.local/bin/virtualenvwrapper.sh which I found by running:

    $ find / -name virtualenvwrapper.sh 2>/dev/null

    0 讨论(0)
  • 2020-12-07 10:16

    For Ubuntu
    If you just installed it, check the output on Terminal, I'm posting mine :

    Running setup.py install for virtualenv-clone    
    Installing virtualenv-clone script to /home/username/.local/bin
    Successfully installed virtualenvwrapper virtualenv virtualenv-clone stevedore pbr six
    Cleaning up...
    

    Here the second line tells you the path. For me it was at /home/username/.local/bin

    0 讨论(0)
  • 2020-12-07 10:17

    did you already try this ?

    $ which virtualenvwrapper.sh
    
    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题