Error with pointing to correct python version: virtualenvwrapper.sh

后端 未结 3 1616
走了就别回头了
走了就别回头了 2021-02-04 13:31

I get this error when I boot up terminal:

Last login: Thu Apr  9 19:49:08 on ttys001
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Conte         


        
3条回答
  •  清酒与你
    2021-02-04 14:28

    The following was found in the virtualenvwrapper install guide. You could try this to set up your $PATH correct.

    To override the $PATH search, set the variable VIRTUALENVWRAPPER_PYTHON to the full path of the interpreter to use and VIRTUALENVWRAPPER_VIRTUALENV to the full path of the virtualenv binary to use. Both variables must be set before sourcing virtualenvwrapper.sh. For example:

    export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python
    export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
    source /usr/local/bin/virtualenvwrapper.sh
    

提交回复
热议问题