Where is virtualenvwrapper.sh after pip install?

后端 未结 24 1548
忘了有多久
忘了有多久 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:00

    In my case (OSX El Capitan, version 10.11.5) I needed to edit the .profile like so:

    In the terminal:

    vim ~/.profile

    export WORKON_HOME=$HOME/.virtualenvs
    export MSYS_HOME=C:\msys\1.0
    source /Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh                                                                                   
    

    And then reload the profile (that it will be availuble in the current session.)

    source ~/.profile

    Hope it will help someone.

提交回复
热议问题